ExitWindows Method Example
This example saves all open Word documents, quits Word, and then quits Microsoft Windows.
Documents.Save NoPrompt:=True, _ OriginalFormat:=wdOriginalDocumentFormat Tasks.ExitWindows