SaveWorkspace Method

Microsoft Excel Visual Basic

SaveWorkspace Method

       

Saves the current workspace.

expression.SaveWorkspace(Filename)

expression   Required. An expression that returns an Application object.

Filename   Optional Variant. The saved file name.

Example

This example saves the current workspace as "saved workspace.xlw".

Application.SaveWorkspace "saved workspace"