Chart.Rotation property (Project)
Gets or sets the rotation of the 3D chart view (the rotation of the plot area around the z-axis), in degrees. Read/write Variant.
expression.Rotation
expression A variable that represents a Chart object.
The value of the Rotation property must be from 0 to 360, except for 3D bar charts, where the value must be from 0 to 44. The default value is 20.
Rotations are rounded to the nearest integer.
The following example sets the rotation of the chart to 45 degrees. The example should be run on a 3D chart.
Sub SetRotation()
Dim chartShape As Shape
Dim reportName As String
reportName = "Simple 3D chart"
Set chartShape = ActiveProject.Reports(reportName).Shapes(1)
chartShape.Chart.Rotation = 45
End Sub
VARIANT
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.