The information in this article applies to:
SYMPTOMSThe following WordBasic error message may occur when you run a macro that protects a document for forms:
CAUSE
You recorded the macro that protects your document. When you record the
Protect Document command, Word for the Macintosh creates a macro that
contains two ToolsProtectDocument statements. When the second instance of
the statement is run, the above error occurs because the document is
already protected.
NOTE: This problem does not occur in Word for Windows because Word for
Windows stops the macro recorder automatically whenever you record the
ToolsProtectDocument statement.
WORKAROUND
WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN
RISK. Microsoft provides this macro code "as is" without warranty of any
kind, either express or implied, including but not limited to the implied
warranties of merchantability and/or fitness for a particular purpose.
REFERENCES"Microsoft Word User's Guide," version 6.0 (Macintosh), page 783 Additional query words: word basic
Keywords : kberrmsg kbmacro kbmacroexample macword |
Last Reviewed: December 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |