Class LeaderLines (Word VBA)

The class LeaderLines represents leader lines on a chart. Leader lines connect data labels to data points.

Set

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

LeaderLines class variables can be set using the Series.LeaderLines procedure.

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

Parent

Returns the parent for the specified object. Read-only object.

Dim objParent As Object
Set objParent = ActiveDocument.Background.Chart.FullSeriesCollection(1).LeaderLines.Parent

Select

Selects the object.

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