Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can not see text in Excel when cell format is set to wrap text | New Users to Excel | |||
Conditional Formatting question (if cell = 0, wrap cell in quotes) | New Users to Excel | |||
How do I view all text in a merged cell? Wrap text is activated. | Excel Discussion (Misc queries) | |||
Why won't text in cell wrap. Cell format set to wrap. | Excel Discussion (Misc queries) | |||
Text not continuing to wrap for large block of text in Excel cell | Charts and Charting in Excel |