Excel: Opening a Worksheet As Read Only from a MacroLast reviewed: October 31, 1994Article ID: Q30824 |
SUMMARYThe Excel OPEN function has an optional third argument that is not documented in Excel versions 1.06 and earlier. This argument specifies whether or not the file is to be opened as read only. The following code will open the file "Example" as read only:
=OPEN("Example",TRUE,TRUE)The following code will open the file "Example" as not read only:
=OPEN("Example",TRUE,FALSE)If the third argument is omitted, Excel will open the document without selecting the read-only option. The complete format for the OPEN statement is as follows, where "filename" is the name of the file to be opened and "update" is either TRUE (update references to nonresident worksheets) or FALSE (do not update references):
=OPEN(filename,update,readonly) |
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |