Deselect all in listbox

  • Thread starter Thread starter Katrina
  • Start date Start date
K

Katrina

I have a list box which I would like to clear. It has
the extended multi-select option.

How do I clear all the selections?

Katrina
 
Assuming your listbox is named lstMyList then:

For i = 0 To lstMyList .ListCount - 1
lstMyList .Selected(i) = False
Next i
 
Back
Top