olatzcelaya
Programmer
Hi all,
I am triying to create a combobox in excel but when i run the VB editor it gives me the following error:
error 424
Object required
I do not why because i have assigned the following macro to the combobox button of excel (here i attach the code):
Sub ComboBox1_Click()
With ComboBox1
.AddItem "YES"
.AddItem "NO"
End With
End Sub
It appears the line of the "YES" highlighted. Could anybody help me with this matter? Any help will be very appreciated.
Thank you,
Olatz
I am triying to create a combobox in excel but when i run the VB editor it gives me the following error:
error 424
Object required
I do not why because i have assigned the following macro to the combobox button of excel (here i attach the code):
Sub ComboBox1_Click()
With ComboBox1
.AddItem "YES"
.AddItem "NO"
End With
End Sub
It appears the line of the "YES" highlighted. Could anybody help me with this matter? Any help will be very appreciated.
Thank you,
Olatz