Skip to content

Latest commit

 

History

History
66 lines (37 loc) · 1.31 KB

Word.Document.Save.md

File metadata and controls

66 lines (37 loc) · 1.31 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Document.Save method (Word)
vbawd10.chm158007404
vbawd10.chm158007404
Word.Document.Save
7e329abc-0530-7016-7712-687de2c780a8
06/08/2017
medium

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

[!includeSupport and feedback]