Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find the index of the selected choice in a combobox?

How do I access the SelectedIndex of an ActiveX combobox object in Excel? I need an integer.

like image 752
emre Avatar asked Oct 20 '09 10:10

emre


2 Answers

I think combo.ListIndex is the property you're looking for...

like image 141
Ant Avatar answered Oct 13 '22 07:10

Ant


The .ListIndex property works if only one item is selected, however, you need to browse the .Selected collection if you allow multiple selections.

like image 28
RBarryYoung Avatar answered Oct 13 '22 07:10

RBarryYoung