The information in this article applies to:
SUMMARY
In earlier versions of Word, WordBasic macro code could be hidden with the
MacroCopy command. This command makes a macro "execute-only." In this
state, the macro code cannot be viewed, but the macro can be run.
MORE INFORMATIONTemplates containing execute-only macros are converted differently depending on whether these execute-only macros are in the Normal template (Normal.dot) or a custom template. Execute-Only Macros in Normal.dotWord will convert the Normal template (typically the first time Word is started after you upgrade to versions of Word 97 or later) and will not convert any of the execute-only macros. A backup copy of the original Normal.dot will be saved with a default file name of "Backup of Normal.wbk" in the same directory or folder where Normal.dot is located. This allows Word 97 and later versions of the Normal template to be unprotected; you can record new macros and have all the typical programming functionality that Word allows.NOTE: The "Backup of Normal.wbk" file is only created the very first time Word is run. If, after starting Word, you replace the Normal.dot file with an earlier version of the Word Normal.dot file, the backup file will not be created. Execute-Only Macros in a Custom TemplateWhen any template other than Normal.dot is converted, all execute-only macros remain in the template, and the entire template or project is locked (you cannot edit code in it). This design means that custom solutions will still work and the code will still be protected. A disadvantage is that formerly accessible macros may no longer be accessible.When you attempt to do any of the following:
-or- -or- To gain access to these macros, use either of the following methods:
-or- Q159748 WD97: How to Protect VB Code from Unauthorized Access Additional query words: wordcon vb vba vbe
Keywords : word8 kbwordvba word97 |
Last Reviewed: October 14, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |