Text form fields

R

Russ T

Is there a way to block users from entering paragraph
marks in text form fields in Word?
 
S

Suzanne S. Barnhill

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.
 
J

Jay Freedman

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.
 

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