title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Document.Save method (Word) |
vbawd10.chm158007404 |
|
|
7e329abc-0530-7016-7712-687de2c780a8 |
06/08/2017 |
medium |
Saves the specified document.
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.
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
[!includeSupport and feedback]