SaveAs Method

The SaveAs method saves the Worksheet object with a new filename or in a different format.

Syntax

objMC.SaveAs(FileSpec As String, [MCFileFormat FileFormat])

Element

Description

objMC

A Mathcad application object.

FileSpec

The filename to save as.

MCFileFormat

Optional argument specifying which format to save the file as. The default is McDefaultFormat.

Remarks

This method returns no meaningful result. It is useful to save files in standard formats, like RTF or HTML, if you wish to store results in a format that can be read by other applications.

The SaveAs method can fail if the save operation failed to complete for any reason, such as insufficient disk space or canceling out of the save operation.