Syntax

expression.AutoText

expression A variable that represents a DataLabels object.

Example

This example sets the data labels for series one in Chart1 to automatically generate appropriate text.

Visual Basic for Applications
Charts("Chart1").SeriesCollection(1).DataLabels.AutoText = True
Note
If you run ?activechart.SeriesCollection(1).datalabels.autotext in the Immediate Window you will receive the following:
Excel 2003: Returns nothing.
Excel 2007: Returns True only when Datalabels have autotext = True.

See also: