error message

  • Thread starter Thread starter Cristian
  • Start date Start date
C

Cristian

Hi

I got two drop down lists on a worksheet. When I click the drop button
on the second list I got the following error mesage" Object doesn't
support this property or method!" and I think the error is about
RowSource property .(please refer to the below code)

Private Sub ComboBox3_DropButtonClick()

If Worksheets("Sheet1").ComboBox2.Value = "AMERICAS" Then
Worksheets("Sheet1").ComboBox3.RowSource = "List!A7:A8"

ElseIf Worksheets("Sheet1").ComboBox2.Value = "ASIA PACIFIC" Then
Worksheets("Sheet1").ComboBox3.RowSource = "List!A10:A12"

End If

Both comboboxes are on Sheet1 are populated with the data from the
sheet called "List" from the above specified ranges.

Could anyone help me with an advice?

Thank you in advance
Cristian



End Sub
 
try

..ListFillRange instead of .rowsource.

(.rowsource is used in a userform, though)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top