ChartGroup.FirstSliceAngle property (PowerPoint)

Returns or sets the angle, in degrees (clockwise from vertical), of the first pie-chart or doughnut-chart slice. Read/write Long.

Syntax

expression.FirstSliceAngle

expression A variable that represents a ChartGroup object.

Remarks

This property applies only to pie, 3D pie, and doughnut charts. It can be a value from 0 through 360.

Example

Note

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

The following example sets the angle for the first slice in chart group one for the first chart in the active document. You should run the example on a 2D pie chart.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        .Chart.ChartGroups(1).FirstSliceAngle = 15

    End If

End With


See also

ChartGroup 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.