Legend object (Excel Graph)
Represents the legend in the specified chart. Each chart can have only one legend.
The Legend object contains one or more LegendEntry objects; each LegendEntry object contains a LegendKey object.
Remarks
Use the Legend property to return the Legend object.
The chart legend isn't visible unless the HasLegend property is True. If this property is False, properties and methods of the Legend object fail.
Example
The following example sets the font style for the legend to bold.
myChart.Legend.Font.Bold = True
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.