Flip Method

Microsoft Word Visual Basic

Show All

Flip Method

       

Flips a shape horizontally or vertically.

expression.Flip(FlipCmd)

expression   Required. An expression that returns one of the objects in the Applies to list.

FlipCmd  Required MsoFlipCmd. The flip orientation.

MsoFlipCmd can be one of these MsoFlipCmd constants.
msoFlipHorizontal
msoFlipVertical

Example

This example adds a triangle to the active document, duplicates the triangle, and then flips the duplicate triangle vertically and makes it red.

Sub FlipShape()
    With ActiveDocument.Shapes.AddShape( _
        Type:=msoShapeRightTriangle, Left:=150, _
        Top:=150, Width:=50, Height:=50).Duplicate
        .Fill.ForeColor.RGB = RGB(Red:=255, Green:=0, Blue:=0)
        .Flip msoFlipVertical
    End With
End Sub