How to Prohibit Use of The Enter Key in a Word 2010 Form


You have just created a form and it is based on a table format so that all the entries are aligned. You have included form fields in both text and numeric format and have set a field length for each, which prevents the person using your form from exceeding a certain length.

BUT, that person using your form can still click the Enter key and add blank lines to your form, causing the alignment to go awry.

You could disable the Enter key on your computer, but that would disable it for the entire document. Also, you would have to use a macro to disable the key and that macro can always be disabled causing the Enter key to be again enabled.

INSTEAD, you can modify the manner in which your table is set up.

Follow the steps below to learn how:

  1. Unprotect your form.
  2. Select the table that contains your form fields.
  3. Right-click the selected table and select Table Properties from the Context menu to display the dialog box.
  4. Be certain the Table tab is displayed on your Ribbon.
  5. Click the Options button to display the dialog box.

table-options

  1. Be certain the Automatically Resize to Fit Contents check box is deselected.
  2. Click OK.
  3. Display the Row tab.

Row-Tab

  1. Be certain the Specify Height check box is selected and specify an exact height for your rows.
  2. Click OK.
  3. Protect your form.

No, the steps above will not prevent a user from clicking the Enter key, bit it will surely stop them from fiddling with your table format if they DO click Enter!


Since they will not be able to see what they key in after clicking Enter, they will very soon figure out that pressing the Enter key is not something they should do!

 

Posted in:
About the Author

Carol Bratt

Carol holds A+, MCP, and MOS computer certifications and is the resident DCT Office expert. She trains the staffs of small law firms in the use of Microsoft Office applications and has authored many books covering Microsoft Office as well as written articles for Infopackets, TechnoLawyer, and Digital Harbor. For more Microsoft Office tips visit Carol’s Corner Office or follow Carol on FaceBook and Twitter.