Listbox Delete Item

shamas21

Registered User.
Local time
Today, 17:52
Joined
May 27, 2008
Messages
162
Hi All

1) I have the following code which add an item to my listbox1, but how can i clear all the items in one go?

Listbox1.Additem "Test"

More still, how can i delete only the selected item on the the list box?

I can assign the code to a button, so that not a problem.

Thanks
 
you can try this
Dim varSelected As Variant

For Each varSelected In Listbox.ItemsSelected
Listbox.Selected(varSelected) = False
Next varSelected
 
set multiselection property true
 

Users who are viewing this thread

Back
Top Bottom