Previous Document Next Document
Document.Close

Sub Close()

Member of Document

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.

The following code example closes the active document.

Sub Test() 
 ActiveDocument.Dirty = False 
 ActiveDocument.Close 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.