Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Saves all the documents in the Documents collection.
Syntax
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. |
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