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
 
Top