title | keywords | f1_keywords | ms.prod | api_name | ms.assetid | ms.date | ||
---|---|---|---|---|---|---|---|---|
LegendEntry.LegendKey Property (PowerPoint) |
vbapp10.chm65710 |
|
powerpoint |
|
6265569c-fc7c-5fe8-864e-d543a08b33f4 |
06/08/2017 |
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