Bewerken

Delen via


_Document.Close(Object, Object, Object) Method

Definition

Closes the specified document or documents.

public void Close (ref object SaveChanges, ref object OriginalFormat, ref object RouteDocument);
abstract member Close : obj * obj * obj -> unit
Public Sub Close (Optional ByRef SaveChanges As Object, Optional ByRef OriginalFormat As Object, Optional ByRef RouteDocument As Object)

Parameters

SaveChanges
Object

Optional Object. Specifies the save action for the document. Can be one of the following WdSaveOptions constants: wdDoNotSaveChanges, wdPromptToSaveChanges, or wdSaveChanges.

OriginalFormat
Object

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

RouteDocument
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.

Applies to