List Box Clearing

G

Guest

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
 

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