Previous Document Next Document
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 code example displays the number of documents currently open.

Sub Test() 
 Select Case Documents.Count 
  Case 0 
   MsgBox "There's no documents open" 
  Case 1 
   MsgBox "There's 1 document open" 
  Case Else 
   MsgBox "There are " & Documents.Count & " documents open" 
 End Select 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.