Object Model Reference : Classes : S : ShapeRange : Properties : ShapeRange.Count |
Property Count As Long
Member of ShapeRange
The Count property returns the number of shapes in a shape range.
The Count property returns a read-only value.
The following VBA example displays the number of ellipses on the active page.
Sub Test() |
Dim sr As ShapeRange |
Set sr = ActivePage.FindShapes(Type:=cdrEllipseShape) |
MsgBox "There are " & sr.Count & " ellipse(s) on the current page" |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.