Rotation Property

Rotation returns or sets the rotation (in degrees) of a shape. Returns a double.

Syntax

object.Rotation

object. Rotation = Rotation

Parameter

Type

Description

Rotation

Double

required

Remarks

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

Example 1

This example demonstrates how to return the angle of rotation of a rectangle.

Debug.Print Rectangle.Rotation

Example 2

This example demonstrates how to rotate an ellipse 60 degrees counterclockwise.

Ellipse.Rotation = 60

Example 3

This script displays all the methods and properties in the Shape object.

Used by: Shape object