Text form fields

  • Thread starter Thread starter Russ T
  • Start date Start date
R

Russ T

Is there a way to block users from entering paragraph
marks in text form fields in Word?
 
There are two possible approaches:

1. You can force the Enter key to function the same as Tab: see "WD: How to
Code ENTER Key to Move to Next Field in Form" at
http://support.microsoft.com?kbid=211219

2. You can put the form field in a table cell with row height set to an
exact amount. This doesn't prevent users from pressing Enter, but most of
them will get a clue when their text starts to disappear.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Is there a way to block users from entering paragraph
marks in text form fields in Word?

The usual workaround is to place each field in a separate cell of a
table, and set the cell widths and row heights to exact values so they
can't expand. It doesn't prevent users from pressing Enter, but
anything they type disappears. This may or may not be enough for your
application.

The alternative uses macros to change the Enter key so it behaves like
the Tab key. See http://support.microsoft.com/?kbid=187985 for
details.
 
Back
Top