AndrewMB
Board Regular
- Joined
- Feb 3, 2008
- Messages
- 75
Any ideas as to why this error occurs?
Private Sub CommandButton1_Click()
If ComboBox1.Value = "Plate" Then
Range("Date_Drop") = ComboBox2.Value
Range("Var_Drop") = ComboBox3.Value
If ComboBox3.Value = 2 Then
Range("V_Drop_One") = "=VLOOKUP(Date_Drop,C7:BN5000,2)"
TextBox2.Value = Range("V_Drop_One") - This line errors out. (Could not set the value property. Type mismatch.)
Private Sub CommandButton1_Click()
If ComboBox1.Value = "Plate" Then
Range("Date_Drop") = ComboBox2.Value
Range("Var_Drop") = ComboBox3.Value
If ComboBox3.Value = 2 Then
Range("V_Drop_One") = "=VLOOKUP(Date_Drop,C7:BN5000,2)"
TextBox2.Value = Range("V_Drop_One") - This line errors out. (Could not set the value property. Type mismatch.)