FileSaveAll

Syntax

FileSaveAll [Save] [OriginalFormat]

Remarks

Saves all changed files, including the Normal template and any other templates attached to open documents that have changed. It's a good idea to include a FileSaveAll statement if your macro makes changes to AutoText entries, other macros, or keyboard, menu, and toolbar assignments.

Argument

Explanation

Save

Specifies whether or not to prompt the user to save each document or template if it is "dirty" — that is, if changes have been made since the last time the document or template was saved:

0 (zero) Prompts the user to save each changed document or template.

1 Saves all changed documents and templates automatically.

OriginalFormat

Specifies whether or not to prompt when saving a document opened from a foreign file format in which changes have been made that cannot be stored in the original format:

0 (zero) Saves the document in Word Document format.

1 Saves the document in its original format.

2 or omitted Prompts the user to save in Word Document format.


See Also

FileSave, FileSaveAs, IsDocumentDirty(), IsTemplateDirty()