Skip to content

Files

Latest commit

 

History

History
48 lines (31 loc) · 1.09 KB

Excel.Shape.Flip.md

File metadata and controls

48 lines (31 loc) · 1.09 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Shape.Flip method (Excel)
vbaxl10.chm636077
vbaxl10.chm636077
Excel.Shape.Flip
6ba41c89-878e-d9e1-5594-0cf45411b608
05/14/2019
medium

Shape.Flip method (Excel)

Flips the specified shape around its horizontal or vertical axis.

Syntax

expression.Flip (FlipCmd)

expression A variable that represents a Shape object.

Parameters

Name Required/Optional Data type Description
FlipCmd Required MsoFlipCmd Specifies whether the shape is to be flipped horizontally or vertically.

Example

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

[!includeSupport and feedback]