Table of contents
Collapse the table of content
Expand the table of content

LegendEntry.LegendKey Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

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


expression. LegendKey

expression A variable that represents a LegendEntry object.


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


LegendEntry Object

© 2018 Microsoft