Close Method

The Close method closes the open Worksheet object.

Syntax

objMC.Close ([MCSaveOption SaveOption])

Element

Description

objMC

A Mathcad worksheet object.

MCSaveOption

Optional argument specifying how to handle unsaved worksheets. The default is McPromptToSaveChanges.

Remarks

This method returns no meaningful result.

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

To close all open worksheets, use the CloseAll method of the Application object.