Shapes.Item Method (PowerPoint)
Returns a single Shape object from the specified Shapes collection.
Syntax
expression .Item(Index)
expression A variable that represents a Shapes object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
Index |
Required |
Variant |
The name or index number of the single Shape object in the collection to be returned. |
Return Value
Shape
Example
This example sets the foreground color to red for the shape named "Rectangle 1" on slide one in the active presentation.
ActivePresentation.Slides.Item(1).Shapes.Item("rectangle 1").Fill _
.ForeColor.RGB = RGB(128, 0, 0)