InlineShapes.Item method (Publisher)
Returns a Shape object that represents an inline shape contained in a text range. This method is the default member of the InlineShapes collection.
Syntax
expression.Item (Index)
expression A variable that represents an InlineShapes object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Index | Required | Variant | The index position or name of the object to return. If Index is an integer, the index into the collection is 1-based. If Index is a string, the name of the shape is used as the index. An automation error is returned if the index or name does not represent a shape in the collection. |
Return value
Shape
Example
This example finds the first inline shape in a text range and flips it vertically.
Dim theShape As Shape
Set theShape = ActiveDocument.Pages(1).Shapes(1)
With theShape.TextFrame.Story.TextRange
With .InlineShapes.Item(1)
.Flip (msoFlipVertical)
End With
End With
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.