Share via


LegendEntry.LegendKey Property (PowerPoint)

Returns the legend key that is associated with the entry. Read-only LegendKey.

Version Information

Version Added: PowerPoint 2007

Syntax

expression .LegendKey

expression A variable that represents a LegendEntry object.

Example

Note

Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.

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

See Also

Concepts

LegendEntry Object Members

LegendEntry Object