On click - Select All-

  • Thread starter Thread starter John Smith
  • Start date Start date
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
 
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
 
Back
Top