Getting the Value of a ComboBox

I have two comboboxes on my worksheet. I need to get the value of both of those so that I may set a cell equal to a certain value.

The code I wrote so far is not correct, but I do not understand why:

Sub ALMacro()
If ComboBox3 = "Alabama" And ComboBox4 = "D.O.E. 1605(b)" Then Range("C11").Value = 5
End Sub

I have already added Alabama and D.O.E. 1605(b) to the correct ComboBoxes using the AddItem "" method.

Can you help me

-GWI



Answer this question

Getting the Value of a ComboBox