Open - Automation

 

The Open method opens an existing document. Returns an object.

 

Syntax

object.Open( FileName, Options )

 

Parameter

Type

Description

FileName

String

required; file name

Options

String

optional; default=""

 

Remarks

The Options parameter consists of a series of semicolon-separated keywords. Options contains a keyword "Sheet" for opening Excel files. Use this keyword to specify a worksheet in an Excel workbook. For example,

 

mvApp.Documents.Open("d:\data\multisheet.xls", Options:="Sheet=Sheet3")

 

See Import Options for details on other Options.

 

Example

This example demonstrates how to open a document.

 

Dim Plot As Object

Set Plot = Docs.Open(mvApp.ApplicationFolder + "Samples\FlowMap.gsm")

 

Used by: Documents collection