Previous Document Next Document

Object Model Reference : Classes : W : Windows : Methods : Windows.CloseAll


Windows.CloseAll

Sub CloseAll()

Description

Member of Windows

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.
VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.