Table of contents
Collapse the table of content
Expand the table of content

ShapeRange.Flip Method (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

Flips the specified shape around its horizontal or vertical axis, or flips all the shapes in the specified shape range around their horizontal or vertical axes.


expression. Flip( FlipCmd)

_expression_A variable that represents a ShapeRange object.


NameRequired/OptionalData TypeDescription
FlipCmdRequiredMsoFlipCmdSpecifies whether the shape is flipped horizontally or vertically.


The FlipCmd parameter can be one of the following MsoFlipCmd constants declared in the Microsoft Office type library.

| msoFlipHorizontal| | msoFlipVertical|


This example adds a triangle to the first page of the active publication, duplicates the triangle, and then flips the duplicate triangle vertically and makes it red.

With ActiveDocument.Pages(1).Shapes _ 
 .AddShape(Type:=msoShapeRightTriangle, _ 
 Left:=10, Top:=10, Width:=50, Height:=50) _ 
 .Fill.ForeColor.RGB = RGB(255, 0, 0) 
 .Flip msoFlipVertical 
End With 
© 2018 Microsoft