Closes the active document.
*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.
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.
The following example closes the active document and saves any changes.
Applies to | Document Object