ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   list box (https://www.excelbanter.com/excel-programming/290113-list-box.html)

Lee

list box
 
How can I record the mulitple selection made by a users
through a list box? (link cell is only for single
selection). thanks.

Tom Ogilvy

list box
 
Dim i as Long, sStr as String
sStr = ""
for i = 0 to listbox1.listcount - 1
if listbox1.selected(i) = True then
sStr = sStr & listbox1.list(i) & vbNewline
end if
Next
msgbox sStr

--
Regards,
Tom Ogilvy

"Lee" wrote in message
...
How can I record the mulitple selection made by a users
through a list box? (link cell is only for single
selection). thanks.





All times are GMT +1. The time now is 02:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com