Syntax

expression.RotationX

expression A variable that represents a ThreeDFormat object.

Remarks

To set the rotation of the extruded shape around the y-axis, use the property of the ThreeDFormat object. To set the rotation of the extruded shape around the z-axis, use the property of the object. To change the direction of the extrusion's sweep path without rotating the front face of the extrusion, use the method.

Example

This example adds three identical extruded ovals to myDocument and sets their rotation around the x-axis to - 30, 0, and 30 degrees, respectively.

Visual Basic for Applications
Set myDocument = Worksheets(1) With myDocument.Shapes With .AddShape(msoShapeOval, 30, 30, 50, 25).ThreeD .Visible = True .RotationX = -30 End With With .AddShape(msoShapeOval, 30, 70, 50, 25).ThreeD .Visible = True .RotationX = 0 End With With .AddShape(msoShapeOval, 30, 110, 50, 25).ThreeD .Visible = True .RotationX = 30 End With End With
rotation rotation x Rotation X Property RotationX rotationx property Set the absolute rotation of an extrusion around the x-axis?

See also: