FileClose

Syntax

FileClose [Save]

Remarks

Closes the active document. All document windows containing the active document are closed. If the document is open in more than one window and you want to close only the active window, use DocClose.

Argument

Explanation

Save

Determines whether or not Word saves the document before closing
it if the document is "dirty" — that is, if changes have been made since the last time the file was saved:

0 (zero) or omitted Prompts the user to save the document.

1 Saves the document before closing it.

2 Closes the document without saving it.

The Save argument also controls whether a prompt appears if the document has a routing slip. A prompt appears if Save is 0 (zero) or omitted; otherwise, the document is closed without being routed.


See Also

ClosePane, DocClose, FileCloseAll, FileExit, IsDocumentDirty()