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

后端 未结 2 825
天涯浪人
天涯浪人 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:28

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

提交回复
热议问题