Model3DFormat.IncrementRotationZ method (Word)
Changes the rotation of the specified shape around the z-axis by the specified number of degrees.
expression A variable that represents a Model3DFormat object.
|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.|
Use the RotationZ property to set the absolute rotation of the shape around the z-axis.
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.