Some Keys Don't Work After Exit Macro Unprotects Document

ID: Q120092

The information in this article applies to:

SYMPTOMS

If a macro that runs when you exit a FORM field unprotects the document or a section of the document, the following keys do not work in Word for Windows:

   HOME
   END
   PAGE UP
   PAGE DOWN
   BACKSPACE
   ENTER

For example, if you assign the following macro to a FORM field as an Exit macro, the above keys no longer work in Word:

Sub MAIN
 ToolsUnprotectDocument
End Sub

Note: To assign a macro to a form field that runs when you exit the field, double-click the FORM field. Under Run Macro On in the Form Field Options dialog box that appears, select the macro name from the Exit list.

By contrast, the keys do not lose functionality if you do either of the following:

STATUS

Microsoft has confirmed this to be a problem in the versions of Word listed above. This problem was corrected in Word version 7.0 for Windows 95.

REFERENCES

"Microsoft Word User's Guide," version 6.0, pages 317-318

Kbcategory: kbusage kbmacro KBSubcategory: kbfield Additional reference words: 6.0 6.0a 6.0c winword word6

Keywords          : kbfield 
Version           : 6.0 6.0a 6.0c
Platform          : WINDOWS

Last Reviewed: August 6, 1997