View Single Post
  #2   Report Post  
Posted to microsoft.public.word.programming,microsoft.public.word.newusers,microsoft.public.word.pagelayout,microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default limiting number of words in textbox in Word 2007

The short answer is no. The best practical solution is to insert a text form
field in a table cell of fixed height and width of sufficient size to
accommodate the required amount of text. The user will be able to type more
than will fill the cell, but should soon get the idea that there will be no
space for it as it disappears of the page.
Do not use ActiveX fields in a document designed to be filled in Word. Use
the legacy form fields.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



g_1 wrote:
I created a Textbox in MS-Word 2007 by going
to the Developer option-then chose Design Mode,
then Legacy Tools-Text box Field. The MultiLine
and Enterkey properties are True and the rest
are default values.

Is there a way I can limit the number of
words to a certain number? I realize there is a way to limit the
number
of characters in the Textbox by the Maxlength value. Also, is it
possible that a message
appears when the user exceeds the maximum length informing
him about that. Do I need to use VBA code or do the inbuilt
features of word allow me to do that?