Document.Save method (Word)

Saves the specified document.

Syntax

expression.Save

expression Required. A variable that represents a Document object.

Parameters:

NoPrompt (Optional)

If true, then Word automatically saves all documents. If false, then Word prompts the user to save each document that has changed since it was last saved.

OriginalFormat (Optional)

Specifies the way the documents are saved. Can be one of the WdOriginalFormat constants.

Remarks

If a document has not been saved before, the Save As dialog box prompts the user for a file name.

Example

This example saves the active document if it has changed since it was last saved.

If ActiveDocument.Saved = False Then ActiveDocument.Save

This example saves each document in the Documents collection without first prompting the user.

Documents.Save NoPrompt:=True, _ 
 OriginalFormat:=wdOriginalDocumentFormat

See also

Document Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.