InlineShapes.Range property (Publisher)

Returns a ShapeRange collection that represents the same set of inline shapes as the InlineShapes collection whose method was called. This allows for miscellaneous formatting of the contained shapes. Read-only.

Syntax

expression.Range (Index)

expression A variable that represents an InlineShapes object.

Parameters

Name Required/Optional Data type Description
Index Optional Long The index position of the inline shape within the ShapeRange collection.

Example

The following example searches through each shape on the first page of the publication, and for all inline shapes within each shape, finds the first inline shape within the range of inline shapes and flips it vertically.

Dim theShape As Shape 
Dim theShapes As Shapes 
 
Set theShapes = ActiveDocument.Pages(1).Shapes 
 
For Each theShape In theShapes 
 With theShape.TextFrame.TextRange 
 .InlineShapes.Range(1).Flip (msoFlipVertical) 
 End With 
Next

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.