Hi
Not sure what do you want.
To get the selected value, try
Code:Private Sub ComboBox1_Change() Dim lngIndex As Long With Me.ComboBox1 lngIndex = .ListIndex If Not lngIndex = -1 Then MsgBox .List(lngIndex) End If End With End Sub
Hi
Not sure what do you want.
To get the selected value, try
Code:Private Sub ComboBox1_Change() Dim lngIndex As Long With Me.ComboBox1 lngIndex = .ListIndex If Not lngIndex = -1 Then MsgBox .List(lngIndex) End If End With End Sub
Cheers !
Excel Range to BBCode Table
Use Social Networking Tools If You Like the Answers !
Message to Cross Posters
@ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)
I cant upload the file as it is trusted, but i try to explain it:
On worksheet dashboard i have on cell E1 a combobox that is listing 3 values. When changing the combobox value the data behind will change automatically. What i try to do is create a combobox in a userform VBA that is getting the values of the combobox in cell E1 and when picking one of those values updating the value of E1 with the selected value.
Bookmarks