Ok, suppose you have created a form based on a table format so your entries are neatly aligned. You want to include form fields in both text and number format, adding a maximum field length for each field. This will prevent the person filling out your form from entering text beyond that maximum. However, the person can still click the Enter key and add blank lines to your form and thus cause it to become distorted. So how can you prevent users from clicking Enter and skewing the layout of your form?
It is possible to disable the Enter key, but doing so will also disable it for your entire document, not just for your form. Also, you would have to use a macro do disable the Enter key.
If, however, the user disables macros by default (due to security settings or by explicitly disabling them when opening the document), then the Enter key would not be disabled. Because of these drawbacks, disabling your Enter key may not be the best method to resolve this issue.
I think a better method would be to modify how you set up your table.
Follow the steps below to learn how:
- Unprotect your form.
- Select the table that contains your form fields.
- Right-click the selected table and select Table Properties from the context menu. Word will display the dialog box.
- Be certain the Table tab has been selected.
- Click the Options button to display the dialog box.
- Be certain the Automatically Resize to Fit Contents check box has not been selected.
- Click OK.
- Display the Row tab.
- Be certain the Specify Height check box has been selected.
- To the right of the Specify Height check box, key in the height you would like for that row.
- Using the Row Height Is drop-down list, select Exactly.
- Click OK.
- Protect your form.
The above steps will not stop a user from clicking Enter but if they do, it will not allow it to skew your table format .
Since the user will not be able to see what they key in after clicking Enter, they should soon realize it is a bad idea to click the enter key.