DropLines object (PowerPoint)

Represents the drop lines in a chart group.

Remarks

Drop lines connect the points in the chart with the x-axis. Only line and area chart groups can have drop lines. This object is not a collection. There is no object that represents a single drop line; you either enable drop lines for all points in a chart group or you disable them.

If the HasDropLines property is False, most properties of the DropLines object are disabled.

Example

Note

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

Use the DropLines property to return the DropLines object. The following example enables drop lines for chart group one of the first chart in the active document and then sets the drop line color to red.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        With .Chart.ChartGroups(1)

            .HasDropLines = True

            .DropLines.Border.ColorIndex = 3

        End With

    End If

End With

See also

PowerPoint Object Model Reference

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.