Remarks:
The Close method closes the document. If the document has been modified, this command displays a message box that prompts you to save the changes. If you want to suppress this message, set the Dirty property to False before using the Close method.