Article ID: 159748 - Last Review: August 10, 2007 - Revision: 1.2 WD97: How to Protect VBA Code from Unauthorized AccessThis article was previously published under Q159748 SUMMARY
In earlier versions of Word, you can use the WordBasic MacroCopy statement
to convert an editable macro to an execute-only macro. You cannot edit or
view an execute-only macro.
The execute-only option was used with earlier versions of Word that used WordBasic as their programming language and is used to protect macros from being modified. This execute-only feature is no longer available in Word 97 and later versions. Instead, you can use the Microsoft Visual Basic for Applications Lock Project property to protect your code from unauthorized changes or to prevent others from viewing the code. MORE INFORMATION
To lock your project, set Project Properties, using the following steps:
| Article Translations
|

Back to the top
