Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
55 lines (30 loc) · 1.12 KB

legendentry-legendkey-property-powerpoint.md

File metadata and controls

55 lines (30 loc) · 1.12 KB
title keywords f1_keywords ms.prod api_name ms.assetid ms.date
LegendEntry.LegendKey Property (PowerPoint)
vbapp10.chm65710
vbapp10.chm65710
powerpoint
PowerPoint.LegendEntry.LegendKey
6265569c-fc7c-5fe8-864e-d543a08b33f4
06/08/2017

LegendEntry.LegendKey Property (PowerPoint)

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

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