HasLegend Property
True if the chart has a legend. Read/write Boolean.
Example
This example turns on the legend for the chart and then sets the legend font color to blue.
With myChart
.HasLegend = True
.Legend.Font.ColorIndex = 5
End With
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
True if the chart has a legend. Read/write Boolean.
This example turns on the legend for the chart and then sets the legend font color to blue.
With myChart
.HasLegend = True
.Legend.Font.ColorIndex = 5
End With