Application.Quit procedure builder

Application.Quit (Word)

Quits Microsoft Word and optionally saves or routes the open documents.

Quit (SaveChanges, OriginalFormat, RouteDocument)

Application.Quit SaveChanges:=wdPromptToSaveChanges


Optional arguments

The following arguments are optional

SaveChanges - Specifies whether Word saves changed documents before closing. Can be one of the WdSaveOptions constants

OriginalFormat - Specifies the way Word saves documents whose original format was not Word Document format. Can be one of the WdOriginalFormat constants

RouteDocument - True to route the document to the next recipient. If the document does not have a routing slip attached, this argument is ignored