johndavidson
12-26-2014, 10:18 PM
How do I know when an item has been selected/deselected in a multiselect listbox without having to click the userform or another button and check all the items in the list box. I want to add an automatic count to the number of items selected in a listbox, which activates whenever an item in the listbox is selected/deselected. I expect it is something simple.
I thought that this would do the trick ...
Private Sub lstDocuments_Click()
countSelectedDocs 'function that counts selected items
End Sub
But selecting/deselecting an item in the listbox does not even come to this routine, nor clicking anywhere in the listbox area.
Thanks.
I thought that this would do the trick ...
Private Sub lstDocuments_Click()
countSelectedDocs 'function that counts selected items
End Sub
But selecting/deselecting an item in the listbox does not even come to this routine, nor clicking anywhere in the listbox area.
Thanks.