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
 

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