API Documentation > CorelDRAW > 2025-v26 > Shapes > IVGShapes
Shapes.Count property
Gets the number of shapes in the collection
Syntax:
Property Get Count() As Long
Remarks:
The Count property returns the number of shapes in a Shapes collection.
Examples:
The following VBA example displays the number of shapes in the Shapes collection.
Sub ShapesCount()
With ActiveLayer.Shapes
  MsgBox "There are " & .Count & " shapes in the Shapes collection."
End With 
End Sub