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

I am trying to incorporate a list box which aloys me to
make multiple choices from one list.

Help deosn't seem to give any. Can somebody please give
me a steer?

Many thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 260
Default Multiline edit list box

Set the ListStyle property of the listbox to 1-
fmListStyleOption.


-----Original Message-----
I am trying to incorporate a list box which aloys me to
make multiple choices from one list.

Help deosn't seem to give any. Can somebody please give
me a steer?

Many thanks
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Multiline edit list box

Set the Multiselect option to true. You cane get the selected items like so

Dim i
With ActiveSheet.ListBox1
For i = 0 To .ListCount - 1
If .Selected(i) Then
MsgBox .List(i)
End If
Next i
End With


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Tony C" wrote in message
...
I am trying to incorporate a list box which aloys me to
make multiple choices from one list.

Help deosn't seem to give any. Can somebody please give
me a steer?

Many 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
Textbox and multiline text Mats Samson Excel Worksheet Functions 0 September 18th 07 08:18 PM
Importing a multiline .txt file schnett Excel Discussion (Misc queries) 13 April 24th 06 11:06 PM
Fixing multiline cell TonyL Excel Worksheet Functions 2 April 6th 06 02:14 PM
Excel multiline formulas s05ullivan Excel Worksheet Functions 1 November 9th 05 04:17 AM
MultiLine/WordWrap usage JonWayn Excel Programming 2 November 23rd 03 08:10 PM


All times are GMT +1. The time now is 11:03 PM.

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"