Deselecting items in a multiple-selec Listbox

E

Ed Cohen

I have a multiple select ListBox and I am wondering how to deselect any items
that the user has selected in this ListBox. Thank you.

Ed Cohen
 
F

fredg

I have a multiple select ListBox and I am wondering how to deselect any items
that the user has selected in this ListBox. Thank you.

Ed Cohen

Do you mean MultiSelect Extended?
Hold down the control key and select that item again.

You would use code to unselect ALL items in one go.

Code a command button's click event:

Dim varItem As Variant
For Each varItem In ListBoxName.ItemsSelected
ListBoxName.Selected(varItem) = False
Next varItem
 

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