HasDataLabels property (Excel Graph)

True if the series has data labels. Read/write Boolean.

Syntax

expression.HasDataLabels

expression Required. An expression that returns one of the objects in the Applies To list.

Example

This example turns on data labels for series three.

With myChart.SeriesCollection(3) 
 .HasDataLabels = True 
 .ApplyDataLabels Type:=xlValue 
End With

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.