Rotation Property [Shape]

 

The Rotation property returns or sets the rotation of an object. Returns a double.

 

Syntax

object.Rotation

object.Rotation = Rotation

 

Parameter

Type

Description

Rotation

Double

required; in degrees

 

Remarks

Positive degrees rotate the selection counterclockwise, negative degrees rotate the selection clockwise.

 

Example 1

This example returns the rotation of an area object.

 

Debug.Print Area.Rotation

 

Example 2

This example changes the rotation of an ellipse to 45 degrees.

 

Ellipse.Rotation = 45

 

Used by: Shape object