Preventing cell to expand when pressing 'enter'

M

MaryJo

I am creating a form, using a table as the template. I
have test field, and have locked the document so all you
need to do is tab to the next field which needs to be
filled out. Is there anyway to set it so if the user
accidentally hits the 'enter' button, it would not expand
the cell?
 
D

Doug Robbins - Word MVP

Hi MaryJo,

The simplest thing to do is set the height of the rows in the table to fixed
values.

Alternatively, you can change the behaviour of the Enter Key so that it
moves the selection to the next formfield by following the procedure in the
following Knowledge Base article:

WD97: How to Code the ENTER Key to Move to Next Field in Protected Form

http://support.microsoft.com/support/kb/articles/Q187/9/85.ASP


--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
M

MaryJo

Thanks, that worked great, except I get a little more than
half way down the page, and I get the following error
message "Run-time error '5941'The requested member of the
collection does not exist. When I select the debug
button "myformfield = Selection.Bookmarks(1).Name" is
highlighted, but I am not sure what I am supposed to do.
Thanks in advance for your help.
 

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