List Box Clearing

F

Frank C

When a List Box Multiselect is set to 'None' I can reset the box with
me.Listbox = null.

When I try this with Multiselect set to 'Simple' , It doesn't clear the box.
How can I clear the entries in the box.

Thanks
 
F

fredg

When a List Box Multiselect is set to 'None' I can reset the box with
me.Listbox = null.

When I try this with Multiselect set to 'Simple' , It doesn't clear the box.
How can I clear the entries in the box.

Thanks

You can add a command button and use it's click event:

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