WD98: How Word Converts Execute-Only Macros (181182)
The information in this article applies to:
- Microsoft Word 98 Macintosh Edition
This article was previously published under Q181182 SUMMARY
In earlier versions of Word, WordBasic macro code can 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.
This technique is useful if you are distributing macro solutions to
customers or to coworkers, and you do not want the customers or coworkers
to be able to modify the macros. This design means that some macros in the
template can be "execute-only" while others remain viewable.
In the versions of Word listed at the beginning of this article, you can
protect only an entire project (that is, all of the code within a template
or document must be either locked or unlocked). When a project is locked,
any Visual Basic for Applications code within the template cannot be
viewed.
The "More Information" section of this article discusses how templates
containing "execute-only" macros that were created in earlier versions
of Word are converted.
REFERENCES
For additional information, please see the following article in the
Microsoft Knowledge Base:
159748
WD98: How to Protect VB Code from Unauthorized Access
For more information about getting help with Visual Basic for Applications,
please see the following article in the Microsoft Knowledge Base:
163435
VBA: Programming Resources for Visual Basic for Applications
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbinfo kbProgramming KB181182 |
---|
|