Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Listbox Selection Help

Hi,

I have a multi-selection listbox where I need to find the value of each
selection using a loop. I don't know how to find the text of the
selected item.

With ListBox2
For i = 0 To .ListCount - 1
If .Selected(i) = True Then
Dim Y As String
Y = ???? This should be the text here


Thanks,

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Listbox Selection Help

Y=.list(i)

"Matt" wrote:

Hi,

I have a multi-selection listbox where I need to find the value of each
selection using a loop. I don't know how to find the text of the
selected item.

With ListBox2
For i = 0 To .ListCount - 1
If .Selected(i) = True Then
Dim Y As String
Y = ???? This should be the text here


Thanks,


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
Listbox selection ub Excel Discussion (Misc queries) 0 March 10th 09 06:43 PM
Listbox & Selection sparx Excel Discussion (Misc queries) 0 July 31st 06 10:48 PM
Last Selection from MultiSelect Listbox Brian Excel Programming 4 December 3rd 05 07:13 AM
Listbox Selection Todd Huttenstine Excel Programming 1 December 9th 04 08:37 PM
ListBox selection GMet Excel Programming 1 September 24th 04 08:02 PM


All times are GMT +1. The time now is 02:22 PM.

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

About Us

"It's about Microsoft Excel"