API Documentation > CorelDRAW > 2025-v26 > Effects > IVGEffects
Effects.Count property
Gets the number of items in the collection of effects
Syntax:
Property Get Count() As Long
Remarks:
The Count property returns the number of effects in the Effects collection.
Examples:
The following VBA example selects the first shape to which an effect is applied.
Sub Test()
Dim s As Shape
For Each s In ActivePage.Shapes
  If s.Effects.Count <> 0 Then

 s.CreateSelection

 Exit For
  End If
Next s 
End Sub