Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 860 Bytes

Excel.Point.HasDataLabel.md

File metadata and controls

41 lines (26 loc) · 860 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Point.HasDataLabel property (Excel)
vbaxl10.chm576081
vbaxl10.chm576081
Excel.Point.HasDataLabel
924f70a0-fdeb-e155-c857-55e0dfb7ca60
05/09/2019
medium

Point.HasDataLabel property (Excel)

True if the point has a data label. Read/write Boolean.

Syntax

expression.HasDataLabel

expression A variable that represents a Point object.

Example

This example turns on the data label for point seven in series three on Chart1, and then it sets the data label color to blue.

With Charts("Chart1").SeriesCollection(3).Points(7) 
 .HasDataLabel = True 
 .ApplyDataLabels Type:=xlValue 
 .DataLabel.Font.ColorIndex = 5 
End With

[!includeSupport and feedback]