Open Method

Opens a Document in the WorkSpace. This is equivalent to selecting Open from the File menu.

Syntax

object.Open(Filename, [DisplayOption])

Properties

The Open method syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

Filename

String. The name of the file to open. The file name includes the full path and extension. If a file name is not specified, the user is prompted to enter one.

DisplayOption

Long. (Optional)
Valid entries:

1 – Load only.
2 – Load and activate the document in a hidden window. This flag is a run-time only option.
3 – (default) Load and display the document normally.

Return Value

Object. The dispatch pointer to the opened Document.

 

Example

Applies To