Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default List Box - MultiSelect

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default List Box - MultiSelect

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default List Box - MultiSelect

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
can I have a multiselect option for a list box in excel 2003 pascaleinlove Excel Discussion (Misc queries) 1 March 15th 10 06:41 PM
How do I create a multiselect drop down list Yve Excel Worksheet Functions 2 January 22nd 09 07:29 PM
Coding with pivots and Multiselect list job Excel Programming 3 February 1st 05 12:13 AM
Multiselect list box ptaylor[_2_] Excel Programming 5 January 28th 05 05:35 PM
Multiselect Listbox Francis Ang[_3_] Excel Programming 0 October 27th 04 02:21 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"