Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default a question about cell text wrap

Hi groups,

If a cellformat's WrapText property is True, can it be determined how many
lines of text are in that cell? And further, what is the content of each
line? Thanks very much for any suggestion,

wcc


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default a question about cell text wrap

The extent of Cell Wrapping is a function of the Cell ColumnWidth and most
of the Font properties. AFAIK there is not a function that provide the cell
wrapped rows. I suppose you could compute this by inspecting all the cell
properties and calculating it, but for non-fixed fonts that wouldn't be
possible.

Cheers
Nigel

"wcc" <wccpppATyahoo-NOSPAM-DOTcom wrote in message
...
Hi groups,

If a cellformat's WrapText property is True, can it be determined how many
lines of text are in that cell? And further, what is the content of each
line? Thanks very much for any suggestion,

wcc




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default a question about cell text wrap

Hi
AFAIK there's no suh property. You may claculate it on
your own (but this may be quite difficult):
- get the height and width of the cell
- get the font type + size
get the number of character
- calculate based on these information the number of line
(not taking into account at which position a linebreak
happens)

-----Original Message-----
Hi groups,

If a cellformat's WrapText property is True, can it be

determined how many
lines of text are in that cell? And further, what is the

content of each
line? Thanks very much for any suggestion,

wcc


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default a question about cell text wrap

Thanks Frank & Nigel. I'm new to excel VBA. But I guessed it won't be easy
since I didn't find the property/method of cell/range for this purpose. The
reason why i'm interested in this is when importing excel table into AutoCAD
drawing, to be able to acheive WYSIWYG, you have to figure out this part.
And I've seen even some commerical CAD add-on softwares do not address this
issue.

Regards,
wcc




"Frank Kabel" wrote in message
...
Hi
AFAIK there's no suh property. You may claculate it on
your own (but this may be quite difficult):
- get the height and width of the cell
- get the font type + size
get the number of character
- calculate based on these information the number of line
(not taking into account at which position a linebreak
happens)

-----Original Message-----
Hi groups,

If a cellformat's WrapText property is True, can it be

determined how many
lines of text are in that cell? And further, what is the

content of each
line? Thanks very much for any suggestion,

wcc


.



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 not see text in Excel when cell format is set to wrap text Mark New Users to Excel 1 May 29th 07 02:07 PM
Conditional Formatting question (if cell = 0, wrap cell in quotes) Mo2 New Users to Excel 6 May 11th 07 11:06 PM
How do I view all text in a merged cell? Wrap text is activated. susjorg Excel Discussion (Misc queries) 1 January 23rd 07 07:34 PM
Why won't text in cell wrap. Cell format set to wrap. DRB Excel Discussion (Misc queries) 2 September 28th 06 08:27 PM
Text not continuing to wrap for large block of text in Excel cell Mandra Charts and Charting in Excel 1 May 15th 06 07:13 PM


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