Window.Close procedure builder

Window.Close (Word)

Closes the specified window.

Close (SaveChanges, RouteDocument)

ActiveDocument.ActiveWindow.Close SaveChanges:=wdSaveChanges


Optional arguments

The following arguments are optional

SaveChanges - Specifies the save action for the document. Can be one of the following WdSaveOptions constants: wdDoNotSaveChanges, wdPromptToSaveChanges, or wdSaveChanges

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