Link to home
Start Free TrialLog in
Avatar of gbnorton
gbnortonFlag for United States of America

asked on

save combo box selection to variable?

I have a unbound combo box.  How can I save the users selection to a variable?
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
In the On Change event put the following code:

    Dim sVal As String
    sVal = ComboBoxName.Value
    Debug.Print sVal
   
Avatar of gbnorton

ASKER

Perfect.  As usual.  Thanks.