DataLabels Object
A collection of all the DataLabel objects for the specified series.
Remarks
Each DataLabel object represents a data label for a point or trendline. For a series without definable points (such as an area series), the DataLabels collection contains a single data label.
Example
Use the DataLabels method to return the DataLabels collection. The following example sets the number format for data labels on series one on chart sheet one.
| Visual Basic for Applications |
|---|
|
Use DataLabels(), where is the data-label index number, to return a single DataLabelobject. The following example sets the number format for the fifth data label in series one in embedded chart one on worksheet one.
| Visual Basic for Applications |
|---|
|
See also:
| index | index |