Skip to content

Latest commit

 

History

History
66 lines (36 loc) · 1.67 KB

PowerPoint.Shape.IncrementRotation.md

File metadata and controls

66 lines (36 loc) · 1.67 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Shape.IncrementRotation method (PowerPoint)
vbapp10.chm547006
vbapp10.chm547006
PowerPoint.Shape.IncrementRotation
f6e494fa-6bc1-0fc1-3bd3-ecc4fa5852e0
06/08/2017
medium

Shape.IncrementRotation method (PowerPoint)

Changes the rotation of the specified shape around the z-axis by the specified number of degrees. Use the Rotation property to set the absolute rotation of the shape.

Syntax

expression. IncrementRotation( _Increment_ )

expression A variable that represents a Shape object.

Parameters

Name Required/Optional Data type Description
Increment Required Single Specifies how far the shape is to be rotated horizontally, in degrees. A positive value rotates the shape clockwise; a negative value rotates it counterclockwise.

Remarks

To rotate a three-dimensional shape around the x-axis or the y-axis, use the IncrementRotationX method or the IncrementRotationY method.

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 = ActivePresentation.Slides(1)

With myDocument.Shapes(1).Duplicate

    .Fill.PresetTextured msoTextureGranite

    .IncrementLeft 70

    .IncrementTop -50

    .IncrementRotation 30

End With

See also

Shape Object

[!includeSupport and feedback]