Chart.Perspective property (Project)
Gets or sets a value that represents the perspective for the 3D chart view. Read/write Long.
Syntax
expression.Perspective
expression A variable that represents a Chart object.
Remarks
The value of the Perspective property must be between 0 and 100. Perspective is ignored if the RightAngleAxes property is True.
Example
The following example sets the perspective of the chart to 20. The example should be run on a 3D chart.
Sub SetPerspective()
Dim chartShape As Shape
Dim reportName As String
reportName = "Simple 3D chart"
Set chartShape = ActiveProject.Reports(reportName).Shapes(1)
chartShape.Chart.RightAngleAxes = False
chartShape.Chart.Perspective = 20
End Sub
Property value
INT
See also
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.