Get Selected value of a Combobox

前端 未结 4 1950
情话喂你
情话喂你 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 14:58

    You can use the below change event to which will trigger when the combobox value will change.

    Private Sub ComboBox1_Change()
    'your code here
    End Sub
    

    Also you can get the selected value using below

    ComboBox1.Value
    

提交回复
热议问题