How do I limit the number of characters inside a table?

  • Thread starter David, Diane's Cstrom
  • Start date
D

David, Diane's Cstrom

I am trying to lock down a table to only allow a specific number of
alpha-numeric characters to be inserted into the table. It is a one by one
table.
 
J

Jezebel

Word has no direct functionality for this. You could put formfields in the
cells, and set the size for those fields; or run a macro after the event to
check for overflow. Or put a heading at the top "Don't enter more than x
characters in any one cell".

Why does it matter?
 
S

Stefan Blom

If you are creating a simple form, setting a fixed height for the
table row (in Table | Table Properties, Row tab) usually does the job.
People tend to stop typing when they find that the text disappears...

For more control, use a protected form with a text form field set to
allow a maximum number of characters (as Jezebel suggested). You still
need to put the form field inside a fixed-height table cell, since the
form field doesn't prevent users from pressing Enter.

A macro can provide even more control. See:

How to code the ENTER key to move between form fields in a protected
form in Word
http://support.microsoft.com/kb/211219/en-us

See also:

I'm designing a form that needs to have "fill-in-the-blanks" lines.
What is the best way to create them?
http://word.mvps.org/faqs/tblsfldsfms/LinesInForms.htm

This article also has links to a series of articles (by Dian Chapman)
which describes the use of protected forms in detail.

--
Stefan Blom
Microsoft Word MVP


in message
news:[email protected]...
 

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