olatzcelaya
Programmer
Hi all,
I am writing a code in VBA for excel i want to write in the code that if you select the text of "120FBK" in a combobox or if you select "125L" in the same combobox, the program runs one thing. The code is the following one, but the program tells me that I have a sintaxis error in the line of the "if". Could anybody teel me how it should be written?
Private Sub ComboBox10_Click()
Dim PaperWeight1 As Integer
If ComboBox10.Text = "120FBK" Or "125L" Then
THANK YOU ;-)
OLATZ
I am writing a code in VBA for excel i want to write in the code that if you select the text of "120FBK" in a combobox or if you select "125L" in the same combobox, the program runs one thing. The code is the following one, but the program tells me that I have a sintaxis error in the line of the "if". Could anybody teel me how it should be written?
Private Sub ComboBox10_Click()
Dim PaperWeight1 As Integer
If ComboBox10.Text = "120FBK" Or "125L" Then
THANK YOU ;-)
OLATZ