LeaderLines Property

Microsoft Excel Visual Basic

LeaderLines Property

       

Returns a LeaderLines object that represents the leader lines for the series. Read-only.

Example

This example adds data labels and blue leader lines to series one on the pie chart.

With Worksheets(1).ChartObjects(1).Chart.SeriesCollection(1)
    .HasDataLabels = True
    .DataLabels.Position = xlLabelPositionBestFit
    .HasLeaderLines = True
    .LeaderLines.Border.ColorIndex = 5
End With