WD97: How to Protect VBA Code from Unauthorized AccessLast reviewed: February 13, 1998Article ID: Q159748 |
The information in this article applies to:
SUMMARYIn 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 INFORMATIONTo lock your project, set Project Properties, using the following steps:
For information about how to change a macro to execute-only status in earlier versions of Word, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q79024 TITLE : WinWord: Changing a Macro to Execute-Only Status |
Additional query words: word8 word97 8.0 protect protecting protects
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |