[?] Listbox Control

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.
 
D

Douglas J. Steele

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top