Numeric Value of Choice in Combobox

  • Thread starter Thread starter WLMPilot
  • Start date Start date
W

WLMPilot

Once an item is chosen from a combobox, how do I determine the corresponding
numeric value of that choice?

I need that value in order to pull in another value from the spreadsheet.

Thanks,
Les
 
WLMPilot said:
Once an item is chosen from a combobox, how do I determine the
corresponding
numeric value of that choice?

I need that value in order to pull in another value from the spreadsheet.

Thanks,
Les

Hi Les

Private Sub ComboBox1_Change()
choice = Me.ComboBox1.ListIndex
End Sub

Just remember that first item will be equal to index = 0

Regards,

Per
 
Thanks! One more quick question. Do the textboxes, comboboxes, etc have to
be DIM or is it automatic?

Thanks,
Les
 

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