This documentation is archived and is not being maintained.

Shape.HorizontalFlip Property

Office 2007
Indicates whether the specified shape has been flipped around its horizontal axis. Read-only.



expression   A variable that represents a Shape object.


The HorizontalFlip property value can be one of the MsoTriState constants declared in the Microsoft Office type library and shown in the following table.

msoFalseThe shape has not been flipped around its horizontal axis.
msoTriStateMixedIndicates a combination of msoTrue and msoFalse for the specified shape.
msoTrueThe shape has been flipped around its horizontal axis.


This example restores each shape on the active publication to its original state if it has been flipped horizontally or vertically.

Visual Basic for Applications
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

End Sub

See Also