Excel: Password in PROTECT.DOCUMENT() Returns Macro ErrorLast reviewed: November 29, 1994Article ID: Q58232 |
The information in this article applies to:
PROTECT.DOCUMENT() is a Microsoft Excel macro command that allows you to protect a document or chart with or without a password. To protect a document with a password, the password argument must be surrounded by double quotation marks (""). If there are no quotation marks around the password, Excel returns a macro error. This occurs because any text not surrounded by quotation marks that is passed as an argument to any Excel function is assumed to be a defined name.
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |