OpenEx method
Opens an existing Microsoft Visio file using extra information passed in an argument.
Version added
4.0
Syntax
| |
objRet |
A Document object that represents the file that was opened. |
object |
Required. An expression that returns a Documents collection. |
fileName |
Required String. The name of the file. |
openFlags |
Required Integer. Flags that indicate how to open the file. |
Remarks
The OpenEx method is identical to the Open method, except that it provides an extra argument in which the caller can specify how the document opens.
The openFlags argument should be a combination of zero or more of the following values.
Constant |
Value |
visOpenCopy |
&H1 |
visOpenRO |
&H2 |
visOpenDocked |
&H4 |
visOpenDontList |
&H8 |
visOpenMinimized |
&H10 |
visOpenRW |
&H20 |
visOpenMacrosDisabled |
&H80 |
If visOpenDocked is specified, the file appears in a docked rather than an MDI window, provided that the file is a stencil file and there is an active drawing window in which to put the docked stencil window.
If visOpenDontList is specified, the name of the opened file doesn't appear in the list of recently opened documents on the File menu.
If visOpenMinimized is specified, the file opens minimized—it is not active. This flag is not supported in versions of Visio earlier than 5.0b.
If visOpenMacrosDisabled is specified, the file opens with VBA macros disabled. This flag is not supported in versions earlier than Microsoft Visio 2002.