Get Selected value of a Combobox

前端 未结 4 1947
情话喂你
情话喂你 2020-12-20 14:43

I have a thousands of cells in an Excel worksheet which are ComboBoxes. The user will select one at random and populate it.

How do I get the selected ComboBox value?

4条回答
  •  伪装坚强ぢ
    2020-12-20 15:18

    A simpler way to get the selected value from a ComboBox control is:

    Private Sub myComboBox_Change()
      msgbox "You selected: " + myComboBox.SelText
    End Sub
    

提交回复
热议问题