Chart.Perspective property (PowerPoint)

Returns or sets 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 this property must be between 0 and 100. This property is ignored if the RightAngleAxes property is set to True.

Example

Note

Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.

The following example sets the perspective of the first chart in the active document to 70. You should run the example on a 3D chart.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        .Chart.RightAngleAxes = False

        .Chart.Perspective = 70

    End If

End With

See also

Chart Object

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.