Article ID: 162480
Article Last Modified on 1/19/2007
APPLIES TO
- Microsoft Word 97 Standard Edition
This article was previously published under Q162480
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.
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.
Additional query words: wordcon vb vba vbe
Keywords: kbinfo KB162480