Class LeaderLines (Word VBA)

The class LeaderLines represents leader lines on a chart. Leader lines connect data labels to data points. To use a LeaderLines class variable it first needs to be instantiated, for example


Dim lls as LeaderLines
Set lls = ActiveDocument.Background.Chart.FullSeriesCollection(1).LeaderLines

Border

Returns the border of the object.


Dim cbrBorder As ChartBorder
Set cbrBorder = ActiveDocument.Background.Chart.FullSeriesCollection(1).LeaderLines.Border

Delete

Deletes the object.


ActiveDocument.Background.Chart.FullSeriesCollection(1).LeaderLines.Delete

Format

Returns the line, fill, and effect formatting for the object.


Dim cftFormatted As ChartFormat
Set cftFormatted = ActiveDocument.Background.Chart.FullSeriesCollection(1).LeaderLines.Format

Select

Selects the object.


ActiveDocument.Background.Chart.FullSeriesCollection(1).LeaderLines.Select