Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2007

Tip: Looking for answers? Try searching our database.

Detect if text is too long to fit in a cell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ludo - 07 Nov 2007 10:05 GMT
Hi,

I have a macro that fills a table (in Word XP) with some data. The table is
created manually before the execution of the macro, and I access it with :

Set objTable = ActiveDocument.Tables(1)

It works perfectly, but for some cells, the text is too long to fit in, and
it is automatically word-wrapped in two lines. As my cells's height is for
one line of text, I can't read some characters.

My question : is it possible to detect if the text of a cell is too long for
it (or if it is word-wrapped) ? My idea is to reduce font size for theses
cells.

Thanks
Ludovic Balogh
Helmut Weber - 07 Nov 2007 10:16 GMT
Hi Ludo,

see above the thread
"How do I tell if text fits into a fixed-width table cell"

Signature

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"

Ludo - 21 Nov 2007 09:18 GMT
Thanks !

> Hi Ludo,
>
> see above the thread
> "How do I tell if text fits into a fixed-width table cell"
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.