WordWrap

J

Julie Mascara

If I have a cell set to exact row height & width and wrap
text, how can I tell if the text in the cell has actually
wrapped to the next line?
 
J

Jonathan West

Hi Julie,

From your description, I rather suspect that you are talking about Excel.
This group deals with VBA in Word. If you are asking about Excel, the Excel
VBA experts can be found at microsoft.public.excel.programming

If you really do mean Word, then position the cursor at the start of the
cell, and read the value of
Selection.Information(wdVerticalPositionRelativeToPage). Repeat by reading
the value of that property with the cursor at the end of the cell, and
compare the values. If the 2nd value is higher than the first, the text has
wrapped.

--
Regards
Jonathan West - Word MVP
MultiLinker - Automated generation of hyperlinks in Word
Conversion to PDF & HTML
http://www.multilinker.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top