Previous Document Next Document

Object Model Reference : Classes : D : Document : Methods : Document.Close


Document.Close

Sub Close()

Description

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.

VBA example

The following VBA example closes the active document.

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.