Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 738 Bytes

Excel.Chart.HasLegend.md

File metadata and controls

40 lines (25 loc) · 738 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Chart.HasLegend property (Excel)
vbaxl10.chm149115
vbaxl10.chm149115
Excel.Chart.HasLegend
e791cc18-03a3-1e60-f064-256cdbd6bd2e
04/16/2019
medium

Chart.HasLegend property (Excel)

True if the chart has a legend. Read/write Boolean.

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.

With Charts("Chart1") 
 .HasLegend = True 
 .Legend.Font.ColorIndex = 5 
End With

[!includeSupport and feedback]