Adding VB to a Table Cell

D

Danny Sowden

I have a table cell which i want to limit to a certain
number of characters and not grow. Is there any VB code
which i can use. I know i can limit the table so that it
does not grown horizontally and then wrap the text to fill
the cell. I want to stop the table expanding as more and
more text goes in as this ruins the formatting of my
document. I can't protect the table as i want the user to
be able to format the text going into it.

Any ideas????
 
C

Cindy Meister -WordMVP-

Hi Danny,
I have a table cell which i want to limit to a certain
number of characters and not grow. Is there any VB code
which i can use. I know i can limit the table so that it
does not grown horizontally and then wrap the text to fill
the cell. I want to stop the table expanding as more and
more text goes in as this ruins the formatting of my
document.
you can also set an "exact" row height for the rows in the
table. The user could continue typing, but the excess text
would "disappear".

The only other way I know of would be to use the
Window_SelectionChange event. This fires whenever you use the
mouse or an arrow key (or TAB in a table) to change where the
selection is in a document. You could conceivably use it to
check the row heights and delete extra text from the cell
that was just exited. But note this can slow down the UI
quite a bit.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan
24 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :)
 

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