The CloseAll method closes all open windows in CorelDRAW. You are prompted to save your changes for each document that is "dirty" when you execute the CloseAll method.
Examples:
The following VBA example closes all windows in the application, prompting the user to save the document if "dirty."
Sub Test()
ActiveDocument.Windows.CloseAll
End Sub