SaveAll

The SaveAll method saves all documents in the collection. Returns a Boolean. Returns 'True' when all the documents in the collection are saved successfully, otherwise returns 'False'.

Syntax

object.SaveAll( Prompt )

Parameter

Type

Required/

Optional

Default

Description

Prompt

Boolean

Optional

False

This specifies whether it should be prompted to save the current changes before saving the documents.

Remarks

Prompt equals true prompts the user to save changes and Prompt equals false does not prompt the user to save changes. Returns true if everything saved, returns false if the user canceled or if a save failed.

Example 1

This example demonstrates how to save all open documents without prompting the user.

Docs.SaveAll(Prompt:=False)

Example 2

This script displays all the methods and properties in the Documents collection.

Used by: Documents collection