Previous Document Next Document
Shapes.Count

Property Count As Long

Member of Shapes

The Count property returns the number of shapes in the Shapes collection.

The Count property returns a read-only value.

The following code example displays the number of shape objects in the Shapes collection:

Sub ShapesCount() 
 With ActiveLayer.Shapes 
  MsgBox "There are " & .Count & " shapes in the Shapes collection." 
 End With 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.