[?] Listbox Control

  • Thread starter Thread starter DwayneConyers
  • Start date Start date
D

DwayneConyers

I would like to create an event in code that de-selects an item that was
clicked in a listbox.

When the item is clicked, code is executed to perform a task. The user can
select another item, but the fact that the one clicked remains highlighted
confuses some users. Therefore, we need to have the selected object
de-selected after it is clicked and processing has commenced.

Thanks.
 
Dim varItem As Variant

With Me.MyListBox
For Each varItem In .ItemsSelected
.Selected(varItem) = False
Next varItem
End With

Replace MyListBox with the actual name of your listbox.
 
Back
Top