Flip Method

ShapeRange.Flip Method (Excel)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Flips the specified shape around its horizontal or vertical axis.

expression .Flip(FlipCmd)

expression A variable that represents a ShapeRange object.

Parameters

Name

Required/Optional

Data Type

Description

FlipCmd

Required

MsoFlipCmd

Specifies whether the shape is to be flipped horizontally or vertically.

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

Set myDocument = Worksheets(1) 
With myDocument.Shapes.AddShape(msoShapeRightTriangle, _ 
        10, 10, 50, 50).Duplicate 
    .Fill.ForeColor.RGB = RGB(255, 0, 0) 
    .Flip msoFlipVertical 
End With
Show:
© 2016 Microsoft