API Documentation > CorelDRAW > 2025-v26 > Document > IVGDocument
Document.Close method
Closes the document
Syntax:
Sub Close()
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.
Examples:
The following VBA example closes the active document.
Sub Test()
ActiveDocument.Dirty = False
ActiveDocument.Close 
End Sub