Model3DFormat.IncrementRotationZ method (Word)

Changes the rotation of the specified shape around the z-axis by the specified number of degrees.

Syntax

expression.IncrementRotationZ (Increment)

expression A variable that represents a Model3DFormat object.

Parameters

Name Required/Optional Data type Description
Increment Required Single Specifies how much (in degrees) the rotation of the model around the z-axis is to be changed. Any value can be provided, although any value will be effectively normalized into the range 0..360 degrees.

Remarks

Use the RotationZ property to set the absolute rotation of the shape around the z-axis.

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

Example

This example tilts a 3D model on myDocument by 10 degrees. Shape one must be a 3D model for this code to have any effect.

Set myDocument = ActivePresentation.Slides(1)

myDocument.Shapes(1).Model3D.IncrementRotationZ 10

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.