Combo Box Standard code

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

Guest

I would like to know wheter anyone would be willing to help me with the
standard code for a combo box

Private Sub ComboBox3_Change()
???
End Sub

I would like to lookup values in Sheet 1, Row a1:A50
 
Right click on your combo-box

-> select controlpanel -> input range is A1:A50 -> cell link = B1 -
drop down lines eg 6


Private Sub ComboBox3_Change()

Dim choise As Long
choise= Sheet(input).Range("B1")

If choise = 25 then
...
End if

End Su
 
Use the listindex property if the combobox is filled from Sheet1!A1:A50

Private Sub ComboBox3_Click()
Dim rng as Range
set rng = Worksheets("Sheet1").Range("A1:A50")
msgbox rng(Combobox3.ListIndex + 1).Address
End Sub

"standard code" is not self defining. There is no standard code associated
with a combobox.
 

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