ShapesNum Method

Returns the number of shapes in the shape collection of the group/page.

Applies to: Page object, Shape object

Syntax

[[Let] countRet =] object.ShapesNum ()

The ShapesNum method syntax has these parts:

Part Description
object Required. An expression that returns an object in the Applies to list.
countRet Optional. A Long type variable.

Remarks

If there are no shapes in the shape collection of the group/page, the ShapesNum method returns 0.

 

See Also

RemoveAllShapes method, RemoveShape method, RemoveShapeByID method, ReorderShape method, ReorderShapeByID method, Shape method, ShapeByID method