De-select items in listbox

  • Thread starter Thread starter Trang
  • Start date Start date
T

Trang

I have a reset button, when click on that, all the
selected items in the listbox will be clear out. what is
the syntax to deselect items in listbox? Thanks.

Trang
 
This is fast for long list, but works well for any size:

While (YourListBox.ItemsSelected.Count > 0)
YourListBox.Selected(YourListBox.ItemsSelected(0)) = False
Wend

Mauricio Silva
 
Back
Top