Previous Document Next Document

Object Model Reference : Classes : D : Documents : Properties : Documents.Count


Documents.Count

Property Count As Long

Description

Member of Documents

The Count property returns the number of open documents in CorelDRAW.

The Count property returns a read-only value.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.