Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default List box multi

how can you use the multi and extend options with a list box??
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default List box multi

When setting the MultiSelect property to multiple choice:
- ListBox1.ListIndex cannot be used to check for -1 .
- You need to loop though each item and check its Selected() property
(true/false)

Dim i As Long
For i = 0 To ListBox1.ListCount - 1
MsgBox i & " - " & ListBox1.Selected(i) & " - " & Listbox1.List(i)
Next

Regards,
Sebastien
"hdodson" wrote:

how can you use the multi and extend options with a list box??

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
How to find a value with multi-column, multi-record list Dallasm Excel Worksheet Functions 1 May 30th 10 05:40 PM
Multi-select from a dropdown list PaulaG Excel Discussion (Misc queries) 5 April 7th 10 06:52 PM
Drop down list for multi cells jsw Excel Discussion (Misc queries) 3 April 6th 09 06:44 PM
Extract values from a multi-select multi-column list-box Peter[_20_] Excel Programming 5 September 28th 03 04:04 PM
Multi Select List Box jacqui Excel Programming 0 July 22nd 03 12:12 PM


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

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"