I have a combobox in the form of excel. What I need is when user click on combobox, code must remember the value that was in combobox to the first variable and then when user select new value code must remember the new value to the second variable. I've tries all scenarios like "DropButtonClick" etc.
Here is the code for combobox
ComboBoxDensityUpper.List = Array("kg/m3", "g/cm3", "SG")
Then I've tried this, but it saves the value that user select, not the value that was initially in combobox.
Private Sub ComboBoxDensityUpper_DropButtonClick()
Dim FirstValue As String
FirstValue = ComboBoxDensityUpper.Value
MsgBox FirstValue
End Sub