Skip to content

Files

Latest commit

 

History

History
49 lines (32 loc) · 1.23 KB

Excel.Shape.IncrementTop.md

File metadata and controls

49 lines (32 loc) · 1.23 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Shape.IncrementTop method (Excel)
vbaxl10.chm636080
vbaxl10.chm636080
Excel.Shape.IncrementTop
84aa117d-5309-ea33-e21a-5fc5ef1d6123
05/14/2019
medium

Shape.IncrementTop method (Excel)

Moves the specified shape vertically by the specified number of points.

Syntax

expression.IncrementTop (Increment)

expression A variable that represents a Shape object.

Parameters

Name Required/Optional Data type Description
Increment Required Single Specifies how far the shape object is to be moved vertically, in points. A positive value moves the shape down; a negative value moves it up.

Example

This example duplicates shape one on myDocument, sets the fill for the duplicate, moves it 70 points to the right and 50 points up, and rotates it 30 degrees clockwise.

Set myDocument = Worksheets(1) 
With myDocument.Shapes(1).Duplicate 
 .Fill.PresetTextured msoTextureGranite 
 .IncrementLeft 70 
 .IncrementTop -50 
 .IncrementRotation 30 
End With

[!includeSupport and feedback]