Object Model Reference : Classes : D : Document : Methods : 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 VBA example closes the active document.
Sub Test() |
ActiveDocument.Dirty = False |
ActiveDocument.Close |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.