A
Alexander V. Alexeev
Hi all!
I have been playing around with a listbox which, for instance, has Pear,
Apple, Peach, Melon as values... what I was looking for is a way to retrieve
values that were selected (it's a multi-selection box). The online VBA
reference suggests I do FOR NEXT loop based on ListCount property and test
with IF whether an item with such and such an index was selected... this is
however is not good for my purposes. What if I wanted to really be able to
retrieve it like in HTML <select>... i.e. comma separated or an array of
values... so if one selects Pear and Melon.. it'd show those. I tried using
Value property but it does not seem to show anything.
Ultimately, I plan to have names from Active Directory in the list box and
would need to retrieve their usernames.
Am I missing something, is tehre perhaps a property that does what I
described?
Thanks!
Alex A
I have been playing around with a listbox which, for instance, has Pear,
Apple, Peach, Melon as values... what I was looking for is a way to retrieve
values that were selected (it's a multi-selection box). The online VBA
reference suggests I do FOR NEXT loop based on ListCount property and test
with IF whether an item with such and such an index was selected... this is
however is not good for my purposes. What if I wanted to really be able to
retrieve it like in HTML <select>... i.e. comma separated or an array of
values... so if one selects Pear and Melon.. it'd show those. I tried using
Value property but it does not seem to show anything.
Ultimately, I plan to have names from Active Directory in the list box and
would need to retrieve their usernames.
Am I missing something, is tehre perhaps a property that does what I
described?
Thanks!
Alex A