Deselect all in listbox

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
 
R

Roger Carlson

Assuming your listbox is named lstMyList then:

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