ChangeWorksheetsPath Method

The ChangeWorksheetsPath method changes all of the worksheet reference paths in the plot document to a new location.

Syntax

object.ChangeWorksheetsPath( folder )

Parameter Type Description
folder String required, path for the worksheet references

 

Example

The following example demonstrates changing the worksheet references from the sample files folder to the folder C:\temp.

'Open existing plot

Set Plot1 = Grapher.Documents.Open(Grapher.Path + "Samples\class scatter plot.grf")

 

'Change the worksheet paths

Plot1.ChangeWorksheetsPath("C:\temp")

 

Used by: Document Object