Export (0) Print
Expand All
Expand Minimize

_Document.Close method

Closes the specified document or documents.

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

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

instance.Close(SaveChanges, OriginalFormat, _
	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.

OriginalFormat
Type: System.Object

Optional Object. Specifies the save format for the document. Can be one of the following WdOriginalFormat constants: wdOriginalDocumentFormat, wdPromptUser, or wdWordDocument.

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.

Show:
© 2014 Microsoft