Object Model Reference : Classes : D : Documents : Properties : Documents.Count |
Property Count As Long
Member of Documents
The Count property returns the number of open documents in CorelDRAW.
The Count property returns a read-only value.
The following VBA example displays the number of documents currently open.
Sub Test() |
Select Case Documents.Count |
Case 0 |
MsgBox "There are no documents open" |
Case 1 |
MsgBox "There is 1 document open" |
Case Else |
MsgBox "There are " & Documents.Count & " documents open" |
End Select |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.