OPENFILE function

Microsoft Office ShapeSheet

OPENFILE function

See also

Opens a Microsoft Visio document, if it's not already open, and activates the document window.

Syntax

OPENFILE("filename")

Remarks

Multiple OPENFILE function calls are queued and executed in order of evaluation. If the current Visio document is activated for visual (in-place) editing, a new Visio instance is launched with the requested file name.

This function always returns FALSE.

In earlier versions of the Visio application, this function appears as _OPENFILE. Visio versions 4.0 and later accept either style.

Example

OPENFILE("basic.vss")

Opens the specified stencil file Basic.vss in a new window, or activates the window if the stencil is already open.