ShapeRange.HorizontalFlip property (Publisher)
Indicates whether the specified shape has been flipped around its horizontal axis. Read-only.
Syntax
expression.HorizontalFlip
expression A variable that represents a ShapeRange object.
Remarks
The HorizontalFlip property value can be one of the MsoTriState constants declared in the Microsoft Office type library and shown in the following table.
Constant | Description |
---|---|
msoFalse | The shape has not been flipped around its horizontal axis. |
msoTriStateMixed | Indicates a combination of msoTrue and msoFalse for the specified shape range. |
msoTrue | The shape has been flipped around its horizontal axis. |
Example
This example restores each shape on the active publication to its original state if it has been flipped horizontally or vertically.
Sub Flipper()
Dim shpS As Shape
For Each shpS In ActiveDocument.MasterPages.Item(1).Shapes
If shpS.HorizontalFlip = msoTrue Then shpS.Flip msoFlipHorizontal
If shpS.VerticalFlip = msoTrue Then shpS.Flip msoFlipVertical
Next
End Sub
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.