I have two text boxes here. The first has the value 1 to 10 and the second 1 to 2. Depending on the combination of values in the text boxes, I want the cell e. g. E6 to take on a certain value from another sheet. I have tried to approach this step by step, but I can't find a useful solution.
The text boxes:
The possible value combinations from another sheet:
e.g.
TextBox1 value = 1 and TextBox2 value = 1 -> Cell E6 = 3,25
TextBox1 value = 2 and TextBox2 value = 2 -> Cell E6 = 13
TextBox1 value = 3 and TextBox2 value = 2 -> Cell E6 = 19,50 and so on
basic idea that has not worked so far:
Sub Test()
If TextBox1.Value = ("1") And TextBox2.Value = ("1") Then
Range("E6").Value = 3.25
End If
End Sub
maybe someone has a much better solution for this instead of the if function.




