Close Method
Closes the active document.
expression.Close(SaveChanges)
*expression * Required. An expression that returns a Document object.
SaveChanges Optional Boolean. Specifies whether unsaved changes should be saved before closing the document. Default is False.
Remarks
The Close method closes the active document without prompting the user to save changes.
When an open document is displayed in the viewer control, calling the document's Close method does not release the view of the document in the control. Set the viewer control's FileName property to an empty string to release the document.
Example
The following example closes the active document and saves any changes.
miDoc.Close True
Applies to | Document Object