SaveAs
SaveAs saves the document to disk. Returns a Boolean. Returns 'True', if the document is saved successfully, otherwise, returns 'False'.
Syntax
object.SaveAs( FileName, Options, FileFormat )
Parameter |
Type |
Required/ Optional |
Default |
Description |
FileName |
String |
Optional |
This provides the path and file name including the extension, if nothing is specified the FullName property is used. |
|
Options |
String |
Optional |
This is used only with the worksheet document. If nothing is specified the last option used to save the worksheet is used again. |
|
FileFormat |
Optional |
srfSaveFormatUnknown |
This provides the file format when saving a data file from the worksheet document. |
Remarks
See Export Option Strings for information on worksheet export Options.
Example
This example demonstrates how to save a plot document as TEST.SRF.
Set OutputDir = "c:\temp\"
Plot.SaveAs(FileName:=OutputDir+"test.srf")
Used by: Document object