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)

Usage
Dim <span id="parameterToolTip" class="tip" tabindex="0">SaveChanges</span> As Object
Dim <span id="parameterToolTip" class="tip" tabindex="0">OriginalFormat</span> As Object
Dim <span id="parameterToolTip" class="tip" tabindex="0">RouteDocument</span> As Object
Dim _Application1 As _Application
_Application1.Quit(<span id="parameterToolTip" class="tip" tabindex="0">SaveChanges</span>, <span id="parameterToolTip" class="tip" tabindex="0">OriginalFormat</span>, <span id="parameterToolTip" class="tip" tabindex="0">RouteDocument</span>)

Syntax
Sub Quit( _
<InAttribute()> Optional ByRef SaveChanges As Object, _
<InAttribute()> Optional ByRef OriginalFormat As Object, _
<InAttribute()> Optional ByRef RouteDocument As Object _
)
void Quit(
[In, Optional] ref object SaveChanges,
[In, Optional] ref object OriginalFormat,
[In, Optional] ref object RouteDocument
);
public: Void Quit(
&Object^ SaveChanges,
&Object^ OriginalFormat,
&Object^ RouteDocument
);
public void Quit(
/*in*/System.Object SaveChanges,
/*in*/System.Object OriginalFormat,
/*in*/System.Object RouteDocument
);
function Quit(
SaveChanges : Object,
OriginalFormat : Object,
RouteDocument : Object
);
Parameters
- SaveChanges
Optional Object. Specifies whether Word saves changed documents before quitting. Can be one of the WdSaveOptions constants.
- OriginalFormat
Optional Object. Specifies the way Word saves documents whose original format was not Word Document format. Can be one of the WdOriginalFormat constants.
- RouteDocument
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.

Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms

See Also