ListBox question

C

Cesar Zapata

HI,

I have a listbox in a userform.... the listbox contains a list of reports...
then the user selects one and press OK to download the selected report from
a server.

I would like to have the user the chance to select and be able to open more
than one report at one time?


the reports name list is in column A.


thanks,
 
T

Tom Ogilvy

set the multiselect property to true.

With listbox1
for i = 0 to .Listcount -1
if .selected(i) then
sStr = sStr & .List(i,0) & vbNewLine
end if
Next
End With
msgbox sStr
 

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