Some Keys Don't Work After Exit Macro Unprotects Document

Last reviewed: August 5, 1997
Article ID: 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.

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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: August 5, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.