Previous Document Next Document
Windows.CloseAll

Sub CloseAll()

Member of Windows

The CloseAll method closes all of the open windows in CorelDRAW.

  • You are prompted to save your changes for each document that is “dirty” when you execute the CloseAll method.

The following code example closes all of the windows in the application, prompting the user to save the document if it is dirty:

Sub Test() 
 ActiveDocument.Windows.CloseAll 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.