Documents.Save Method
Saves all the documents in the Documents collection.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Sub Save ( _
ByRef NoPrompt As Object, _
ByRef OriginalFormat As Object _
)
'Usage
Dim instance As Documents
Dim NoPrompt As Object
Dim OriginalFormat As Object
instance.Save(NoPrompt, OriginalFormat)
void Save(
ref Object NoPrompt,
ref Object OriginalFormat
)
Parameters
- NoPrompt
Type: System.Object%
Optional Object. True to have Microsoft 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
Type: System.Object%
Optional Object. Specifies the way the documents are saved. Can be one of the WdOriginalFormat
constants.
Remarks
If a document hasn't been saved before, the Save As dialog box prompts the user for a file name.