Legend property (Excel Graph)
Returns a Legend object that represents the legend for the specified chart. Read-only.
Syntax
expression.Legend
expression An expression that returns a Legend object.
Example
This example turns on the legend for the chart, and then sets the font color for the legend to blue.
myChart.HasLegend = True
myChart.Legend.Font.ColorIndex = 5
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.