Macro Sheets Only
Equivalent to choosing the Legend command from the Insert menu or the Clear command from the Edit menu when a chart legend is selected. Adds a legend to or removes a legend from a chart. This is also equivalent to choosing the Legend button on the Chart toolbar when a chart is active.
Syntax
LEGEND(logical)
Logical is a logical value specifying which command LEGEND is equivalent to.
Related Function
FORMAT.LEGEND Determines the position and orientation of the legend on a chart
List of Command-Equivalent Functions