Article ID: 181182
Article Last Modified on 10/11/2006
APPLIES TO
- Microsoft Word 98 for Macintosh
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
Additional query words: word8 word97 word98 8.0 8.0 vb vba vbe
Keywords: kbinfo kbprogramming KB181182