How I can built combo box step by step

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to built Combo box in which I can choose from down list menu. could
you advise step by step how I can do it.
 
Yes I tried.
I know how I add combo box, but my question how I can put items in this box
in order to use it as (pick up from down list)

regards,
 
3 ways to add items, assuming you have selected the combobox from the
control toolbox:

1.
Enter the following code in the sheet module
Private Sub Worksheet_Activate()
ComboBox1.ListFillRange = "Sheet1!A1:J10"
End Sub

Or

2. Right-click on the combo and view properties. In the listfillrange,
enter the source of the list

or

3.
Enter the following code in the sheet module
Private Sub Worksheet_Activate()
ComboBox1.AddItem "item1"
ComboBox1.AddItem "item2"
' and so on
End Sub




Mangesh
 

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