Application.Quit (Word)
Quits Microsoft Word and optionally saves or routes the open documents.
Quit (SaveChanges, OriginalFormat, RouteDocument)
Application.Quit SaveChanges:=wdPromptToSaveChanges
Arguments
Optional arguments
The following arguments are optional
SaveChanges (WdSaveOptions) - Specifies whether Word saves changed documents before closing. Can be one of the WdSaveOptions constants.
Possible return values are wdDoNotSaveChanges - Do not save pending changes, wdPromptToSaveChanges - Prompt the user to save pending changes, wdSaveChanges - Save pending changes automatically without prompting the user.
OriginalFormat (WdOriginalFormat) - Specifies the way Word saves documents whose original format was not Word Document format. Can be one of the WdOriginalFormat constants.
Possible return values are wdOriginalDocumentFormat - Original document format, wdPromptUser - Prompt user to select a document format, wdWordDocument - Microsoft Word document format.
RouteDocument (Boolean) - True to route the document to the next recipient. If the document does not have a routing slip attached, this argument is ignored.