Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 963 Bytes

Excel.ShapeRange.HorizontalFlip.md

File metadata and controls

40 lines (26 loc) · 963 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
ShapeRange.HorizontalFlip property (Excel)
vbaxl10.chm640106
vbaxl10.chm640106
Excel.ShapeRange.HorizontalFlip
3b5f3755-987c-cd48-44a2-8be8bdd886dd
05/14/2019
medium

ShapeRange.HorizontalFlip property (Excel)

True if the specified shape is flipped around the horizontal axis. Read-only MsoTriState.

Syntax

expression.HorizontalFlip

expression A variable that represents a ShapeRange object.

Example

This example restores each shape on myDocument to its original state if it has been flipped horizontally or vertically.

Set myDocument = Worksheets(1) 
For Each s In myDocument.Shapes 
    If s.HorizontalFlip Then s.Flip msoFlipHorizontal 
    If s.VerticalFlip Then s.Flip msoFlipVertical 
Next

[!includeSupport and feedback]