Document Object

 

The Document object represents a plot document. Document objects are created by the Documents.Add or Documents.Open methods of the Application object.

 

Properties

Application

DefaultFill

DefaultFont

DefaultLine

DefaultSymbol

FullName

Index

Name

PageSetup

Parent

Path

Saved

Selection

Shapes

Type

Windows

WorksheetPath

 

Methods

Activate

ChangeWorksheetPath

Close

Export

Export2

Import

ListWorksheets

NewWindow

PrintOut

Redo

ReloadWorksheets

Save

SaveAs

Undo

 

Example

The following script demonstrates how the Document object is used.

 

Sub Main

'Declares GrapherApp as an object

  Dim GrapherApp As Object

 

'Creates an instance of the Grapher Application object

 'and assigns it to the variable named "GrapherApp"

  Set GrapherApp = CreateObject("Grapher.Application")

 

 'Makes Grapher visible

  GrapherApp.Visible = True

 

 'Creates a document object and assigns it to the variable named "Plot"

  Set Plot = GrapherApp.Documents.Add(grfPlotDoc)

End Sub