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) |
Return Value
Object. The dispatch pointer to the opened Document.