How to use selected items from Listbox
It is unclear whether you just want to be able to determine which items are
selected or if you actually want to store that information in an array (or if
you want the entire list in an array along with information on which is
selected).
to get the selected items
With userform1.Listbox1
for i = 0 to .listcount - 1
if .selected(i) then
' build array?
msgbox .List(i) & " is selected"
end if
Next
End With
--
Regards,
Tom Ogilvy
" wrote:
I use a listbox for making multiple selections, next I want to use this
selection as input for another sub as an array. How do I do that?
|