Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I have a list box where a user can select multiple items. How do I figure out which items are selected using VBA? I thought there was a selecteditem property, but I don't seem to find it. Thanks, Bill |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Bill,
Here is some code as a starter With Me.ListBox1 For i = 0 To .ListCount - 1 If .Selected(i) Then Msgbox .List(i) End If Next i End With -- HTH RP (remove nothere from the email address if mailing direct) "Bill" wrote in message ... Hello, I have a list box where a user can select multiple items. How do I figure out which items are selected using VBA? I thought there was a selecteditem property, but I don't seem to find it. Thanks, Bill |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Bob,
Thanks a lot. I appreciate it. "Bob Phillips" wrote in message ... Hi Bill, Here is some code as a starter With Me.ListBox1 For i = 0 To .ListCount - 1 If .Selected(i) Then Msgbox .List(i) End If Next i End With -- HTH RP (remove nothere from the email address if mailing direct) "Bill" wrote in message ... Hello, I have a list box where a user can select multiple items. How do I figure out which items are selected using VBA? I thought there was a selecteditem property, but I don't seem to find it. Thanks, Bill |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
can I have a multiselect option for a list box in excel 2003 | Excel Discussion (Misc queries) | |||
How do I create a multiselect drop down list | Excel Worksheet Functions | |||
Coding with pivots and Multiselect list | Excel Programming | |||
Multiselect list box | Excel Programming | |||
Multiselect Listbox | Excel Programming |