I expect you could capture the ListIndex of the listbox during the On Change event like:
Code:
Private Sub lboMonth_Change()
'assuming a label control names lblSelected
Me.lblSelected.Caption = Me.lblSelected.Caption & Me.lboMonth.ListIndex & "~"
Debug.Print Me.lboMonth.ListIndex
End Sub
This will stick the values as clicked. You might need to remove values that are clicked a second time and possibly add some weird character between the values.
Thanks - that worked. I couldn't figure out how to get information back from the _Change event. I guess a label on the userform is the only way. I used a space for my weird character.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.