LegendEntry.LegendKey Property (Word)
Returns the legend key that is associated with the entry. Read-only LegendKey.
Version Information
Version Added: Word 2007
Syntax
expression .LegendKey
expression A variable that represents a LegendEntry object.
Example
The following example sets the legend key for legend entry one on the first chart in the active document to be a triangle. You should run the example on a 2-D line chart.
With ActiveDocument.InlineShapes(1)
If .HasChart Then
.Chart.Legend.LegendEntries(1).LegendKey _
.MarkerStyle = xlMarkerStyleTriangle
End If
End With