Export (0) Print
Expand All
Expand Minimize

Document.Save Method (Word)

Saves all the documents in the Documents collection.

expression .Save(NoPrompt, OriginalFormat)

expression Required. A variable that represents a Document object.

Parameters

Name

Required/Optional

Data Type

Description

NoPrompt

Optional

Variant

True to have Word automatically save all documents. False to have Word prompt the user to save each document that has changed since it was last saved.

OriginalFormat

Optional

Variant

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

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

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
Show:
© 2014 Microsoft