Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 1022 Bytes

Excel.GroupShapes.Item.md

File metadata and controls

49 lines (29 loc) · 1022 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
GroupShapes.Item method (Excel)
vbaxl10.chm642074
vbaxl10.chm642074
Excel.GroupShapes.Item
2f664b81-d870-7936-6dff-0eef163c2e03
04/26/2019
medium

GroupShapes.Item method (Excel)

Returns a single object from a collection.

Syntax

expression.Item (Index)

expression A variable that represents a GroupShapes object.

Parameters

Name Required/Optional Data type Description
Index Required Variant The name or index number for the object.

Return value

A Shape object contained by the collection.

Example

This example sets the OnAction property for shape two in a shape range. If the sr variable doesn't represent a ShapeRange object, this example fails.

Dim sr As Shape 
sr.Item(2).OnAction = "ShapeAction"

[!includeSupport and feedback]