CheckBox controling a ComboBox

D

Dillonstar

I am currently building a form in VB and have hit a snag.

I want to have 3 CheckBoxes in a frame that drive a specific list to be
selected from a single ComboBox. I.e. each CheckBox generates a
different and unique list from the combobox.

Any Ideas
 
S

steve

I would recommend option buttons. This way only 1 list would be supplied.

Private Sub OptionButton1_Click()
ComboBox1.RowSource = ""
ComboBox1.RowSource = "Sheet1!A1:A5"
End Sub

or

Private Sub OptionButton1_Click()
ComboBox1.RowSource = ""
ComboBox1.RowSource = "mylistname"
End Sub

set up code for each button.
 

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

Top