Shape.Flip method (Word)

Flips a shape horizontally or vertically.

Syntax

expression.Flip (FlipCmd)

expression Required. A variable that represents a Shape object.

Parameters

Name Required/Optional Data type Description
FlipCmd Required MsoFlipCmd The flip orientation.

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

See also

Shape Object

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.