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


How does one wrap text in a listbox? There is not a "multiline"
property...Is there another way to accomplish the same?

-- Jason Sweeney


--
jasonsweeney
------------------------------------------------------------------------
jasonsweeney's Profile: http://www.excelforum.com/member.php...fo&userid=5222
View this thread: http://www.excelforum.com/showthread...hreadid=508577

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default List Box: Wrap text?

As far as I know it does not support this....

Tim


"jasonsweeney"
wrote in message
news:jasonsweeney.22qaby_1139095801.4394@excelforu m-nospam.com...

How does one wrap text in a listbox? There is not a "multiline"
property...Is there another way to accomplish the same?

-- Jason Sweeney


--
jasonsweeney
------------------------------------------------------------------------
jasonsweeney's Profile:
http://www.excelforum.com/member.php...fo&userid=5222
View this thread: http://www.excelforum.com/showthread...hreadid=508577



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default List Box: Wrap text?


If its not supported, the only way I can think of mimicing the same is
to hide the listbox on the form, and then put 4 or 5 textboxes (each
with multi line turned on, probably also with a vertical scroll bar) in
a vertical row. Then update the textboxes using "textbox1.value =
listbox.listindex 1"...

Hell, for that matter, I could skip the listbox completely, and just
use textboxes...

But it would be far easier to just have the listbox wrap my text!

-- Jason


--
jasonsweeney
------------------------------------------------------------------------
jasonsweeney's Profile: http://www.excelforum.com/member.php...fo&userid=5222
View this thread: http://www.excelforum.com/showthread...hreadid=508577

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default List Box: Wrap text?

You could use a regular listbox and split your long lines up into two (or
more) lines. Handle clicks such that they select all linked lines when any
one of the (split) lines is selected. A bit complex since you'd have to
keep track when you loaded the list which lines are related, but should be
possible.


Tim




"jasonsweeney"
wrote in message
news:jasonsweeney.22qcna_1139098801.2485@excelforu m-nospam.com...

If its not supported, the only way I can think of mimicing the same is
to hide the listbox on the form, and then put 4 or 5 textboxes (each
with multi line turned on, probably also with a vertical scroll bar) in
a vertical row. Then update the textboxes using "textbox1.value =
listbox.listindex 1"...

Hell, for that matter, I could skip the listbox completely, and just
use textboxes...

But it would be far easier to just have the listbox wrap my text!

-- Jason


--
jasonsweeney
------------------------------------------------------------------------
jasonsweeney's Profile:
http://www.excelforum.com/member.php...fo&userid=5222
View this thread: http://www.excelforum.com/showthread...hreadid=508577



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 do I get date/time to wrap (format - wrap text doesn't work)? Alex Excel Discussion (Misc queries) 3 April 4th 23 02:29 PM
Excel 2007; even though "Wrap Text" is on the text does wrap? Bruce M[_2_] Excel Discussion (Misc queries) 0 December 31st 09 02:58 PM
Wrap text doesn't wrap [email protected] Excel Worksheet Functions 1 March 28th 07 01:58 AM
Why won't text in cell wrap. Cell format set to wrap. DRB Excel Discussion (Misc queries) 2 September 28th 06 08:27 PM
How can I wrap text in a drop down list? wrapped Excel Worksheet Functions 0 January 25th 06 05:53 PM


All times are GMT +1. The time now is 11: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"