Chart.GapDepth property (PowerPoint)

Returns or sets the distance, as a percentage of the marker width, between the data series in a 3D chart. Read/write Long.

Syntax

expression.GapDepth

expression A variable that represents a Chart object.

Remarks

The value of this property must be between 0 and 500.

Note

This property applies only to 3D charts.

Example

Note

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

The following example sets the distance between the data series for the first chart in the active document to 200 percent of the marker width. You should run the example on a 3D chart (the GapDepth property fails on 2D charts).

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        .Chart.GapDepth = 200

    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.