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

后端 未结 2 810
天涯浪人
天涯浪人 2021-01-04 06:44

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

相关标签:
2条回答
  • 2021-01-04 07:17

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

    0 讨论(0)
  • 2021-01-04 07:28

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

    0 讨论(0)
提交回复
热议问题