A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Page Layout
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

limiting number of words in textbox in Word 2007



 
 
Thread Tools Display Modes
  #1  
Old November 22nd, 2009, 04:59 AM posted to microsoft.public.word.programming,microsoft.public.word.newusers,microsoft.public.word.pagelayout,microsoft.public.word.docmanagement
g_1
external usenet poster
 
Posts: 13
Default limiting number of words in textbox in Word 2007

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?
  #2  
Old November 22nd, 2009, 08:53 AM posted to microsoft.public.word.programming,microsoft.public.word.newusers,microsoft.public.word.pagelayout,microsoft.public.word.docmanagement
Graham Mayor
external usenet poster
 
Posts: 18,297
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?



  #3  
Old November 23rd, 2009, 12:12 AM posted to microsoft.public.word.programming,microsoft.public.word.newusers,microsoft.public.word.pagelayout,microsoft.public.word.docmanagement
s
external usenet poster
 
Posts: 52
Default limiting number of words in textbox in Word 2007

Graham Mayor wrote:
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.


Thanks for the advice. I appreciate your time and help.
--

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?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:09 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.