Syntax 1: Closes the specified document or documents.
Syntax 2: Closes the specified window.
Syntax 3: Closes the specified pane or task.
Syntax 1
expression.Close(SaveChanges, OriginalFormat, RouteDocument)
Syntax 2
expression.Close(SaveChanges, RouteDocument)
Syntax 3
expression.Close
expression Syntax 1: Required. An expression that returns a Document or Documents object.
Syntax 2: Required. An expression that returns a Window object.
Syntax 3: Required. An expression that returns a Pane or Task object.
SaveChanges Optional Variant. Specifies the save action for the document. Can be one of the following WdSaveOptions constants: wdDoNotSaveChanges, wdPromptToSaveChanges, or wdSaveChanges.
OriginalFormat Optional Variant. Specifies the save format for the document. Can be one of the following WdOriginalFormat constants: wdOriginalDocumentFormat, wdPromptUser, or wdWordDocument.
RouteDocument Optional Variant. True to route the document to the next recipient. If the document doesn't have a routing slip attached, this argument is ignored.