ThreeDFormat.IncrementRotationZ method (Excel)

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

Syntax

expression.IncrementRotationZ (Increment)

expression A variable that represents a ThreeDFormat object.

Parameters

Name Required/Optional Data type Description
Increment Required Single Specifies how much (in degrees) the rotation of the shape around the z-axis is to be changed. Can be a value from -90 through 90. A positive value tilts the shape to the left; a negative value tilts it to the right.

Remarks

You cannot adjust the specified shape's rotation around the z-axis past the upper or lower limit for the RotationZ property (90 degrees to -90 degrees). For example, if the RotationZ property is initially set to 80 and you specify 40 for the Increment argument, the resulting rotation will be 90 (the upper limit for the RotationZ property) instead of 120.

To change the rotation of a shape around the x-axis, use the IncrementRotationX method. To change the rotation of a shape around the y-axis, use the IncrementRotationY method.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.