Partager via


Document::SaveAs method

The SaveAs method is identical to the Save method, except a filename is specified.

Syntax

Document.SaveAs( _
  ByVal FileName As String _
)

Parameters

FileName

Name of the file to which the document's persistent data is being saved.

Return value

This method does not return a value.

Examples

' Save the document to a specified file.
objDoc.SaveAs "D:\console2.msc"

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
MMCObj.h
IDL
MMCObj.idl
DLL
Mmc.exe
IID
IID_Document

See also

Document.IsSaved

Document.Save