Model3DFormat.IncrementRotationX method (Excel)
Changes the rotation of the specified shape around the x-axis by the specified number of degrees.
Syntax
expression.IncrementRotationX (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 x-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 RotationX property to set the absolute rotation of the shape around the x-axis.
To change the rotation of a model around the y-axis, use the IncrementRotationY method. To change the rotation around the z-axis, use the IncrementRotationZ 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.IncrementRotationX 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.