_Application.Quit Method
Quits Microsoft Word and optionally saves or routes the open documents.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Sub Quit ( _
ByRef SaveChanges As Object, _
ByRef OriginalFormat As Object, _
ByRef RouteDocument As Object _
)
'Usage
Dim instance As _Application
Dim SaveChanges As Object
Dim OriginalFormat As Object
Dim RouteDocument As Object
instance.Quit(SaveChanges, OriginalFormat, _
RouteDocument)
void Quit(
ref Object SaveChanges,
ref Object OriginalFormat,
ref Object RouteDocument
)
Parameters
- SaveChanges
Type: System.Object%
Optional Object. Specifies whether Word saves changed documents before quitting. Can be one of the WdSaveOptions constants.
- OriginalFormat
Type: System.Object%
Optional Object. Specifies the way Word saves documents whose original format was not Word Document format. Can be one of the WdOriginalFormat constants.
- RouteDocument
Type: System.Object%
Optional Object. True to route the document to the next recipient. If the document doesn't have a routing slip attached, this argument is ignored.