Syntax

expression.LegendKey

expression A variable that represents a LegendEntry object.

Example

This example sets the legend key for legend entry one on Chart1 to be a triangle. The example should be run on a 2-D line chart.

Visual Basic for Applications
Charts("Chart1").Legend.LegendEntries(1).LegendKey _ .MarkerStyle = xlMarkerStyleTriangle
Change all legend symbols? Iterate through all legend keys? legend legend key Legend Key Property LegendKey LegendKey Property LegendKey? refer to a particular legend marker?

See also: