API Documentation > CorelDRAW > 2025-v26 > Windows > IVGWindows
Windows.CloseAll method
Closes all the windows
Syntax:
Sub CloseAll()
Remarks:
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