LegendEntry.LegendKey property (Word)
Returns the legend key that is associated with the entry. Read-only LegendKey.
expression A variable that represents a 'LegendEntry' object.
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 2D line chart.
With ActiveDocument.InlineShapes(1) If .HasChart Then .Chart.Legend.LegendEntries(1).LegendKey _ .MarkerStyle = xlMarkerStyleTriangle End If End With
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.