Syntax

expression.HasLegend

expression A variable that represents a Chart object.

Example

This example turns on the legend for Chart1 and then sets the legend font color to blue.

Visual Basic for Applications
With Charts("Chart1") .HasLegend = True .Legend.Font.ColorIndex = 5 End With
Disable legend on line chart? Display chart legend? has legend Has Legend Property HasLegend HasLegend Property

See also: