SaveAll Method

Home Page (Objects)OverviewFAQReference

Applies to: Documents object

Saves all open documents in the collection.

Syntax

object.SaveAll ( [PromptUser] )

Parameters

object

An expression that evaluates to a Documents object.

PromptUser

(Optional) A Variant that is a Boolean indicating whether to prompt the user to save changes. Possible values are:

Return Values

The SaveAll method returns the enum dsSaveStatus, which has one of the following values:

Example

The following example prompts the user to save the changes to each open document:

Documents.SaveAll (True)