Add [Documents Collection]
The Add method adds a new document to the collection, equivalent to File | New. Returns an object.
Syntax
object.Add( DocType )
Parameter |
Type |
Default |
Description |
DocType |
srfDocPlot |
optional; This indicates the type of documents to be added. You can add a plot document, a work sheet or a grid document. If nothing is specified a plot document is added. |
Example 1
This example demonstrates how to create a new plot document.
'declare Doc object
Dim Doc As Object
'set the Doc object reference to a new plot document
Set Doc = Docs.Add(DocType:=srfDocPlot)
Example 2
This script displays all the methods and properties in the Documents collection.
Used by: Documents collection