API Documentation > CorelDRAW > 2025-v26 > Views > IVGViews
Views.Count property
Gets the number of items in the collection of views
Syntax:
Property Get Count() As Long
Remarks:
The Count property returns the number of views in a collection.
Examples:
The following VBA example displays a message box if there are no views in the active document.
Sub Test()
If ActiveDocument.Views.Count > 1 Then
  MsgBox "There are no views in the current document", vbCritical
End If 
End Sub