다음을 통해 공유


Shape.IncrementLeft Method (Excel)

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

Syntax

.IncrementLeft(Increment)

A variable that represents a Shape object.

Parameters

Name

Required/Optional

Data Type

Description

Increment

필수

Single

Specifies how far the shape is to be moved horizontally, in points. A positive value moves the shape to the right; a negative value moves it to the left.

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

참고 항목

개념

Shape Object Members

Shape Object