Window.Close Method

Closes the specified window.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Sub Close ( _
    ByRef SaveChanges As Object, _
    ByRef RouteDocument As Object _
)
'Usage
Dim instance As Window
Dim SaveChanges As Object
Dim RouteDocument As Object

instance.Close(SaveChanges, RouteDocument)
void Close(
    ref Object SaveChanges,
    ref Object RouteDocument
)

Parameters

  • SaveChanges
    Type: System.Object%
    Optional Object. Specifies the save action for the document. Can be one of the following WdSaveOptions constants: wdDoNotSaveChanges, wdPromptToSaveChanges, or wdSaveChanges.
  • 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.

See Also

Reference

Window Interface

Window Members

Microsoft.Office.Interop.Word Namespace