Previous Document Next Document

Object Model Reference : Classes : S : ShapeRange : Properties : ShapeRange.Count


ShapeRange.Count

Property Count As Long

Description

Member of ShapeRange

The Count property returns the number of shapes in a shape range.

The Count property returns a read-only value.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.