On click - Select All-

J

John Smith

Is it possible to have a button named for exemple "Select All" that will
select all the row in a listbox?

Thanks!

JS
 
T

T Martin

Use the following code in the "On Click" Event:

Dim i as variant
Do While i < me.listname.listcount
me.listname.selected(i) = true
i = i + 1
loop

(Make sure the list box you have enabled multi-select)

T Martin
 

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