Microsoft KB Archive/120092

{|
 * width="100%"|

Some Keys Don't Work After Exit Macro Unprotects Document

 * }

Q120092

-

The information in this article applies to:


 * Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c

-

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:


 * Instead of running an Exit macro, unprotect the document by choosing Unprotect Document from the Tools menu.
 * Add an unprotected section at the end of your document and then run the Exit macro that unprotects your document.

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.