Partager via


Chart.DataTable Property (PowerPoint)

Returns the chart data table. Read-only DataTable.

Version Information

Version Added: PowerPoint 2007

Syntax

expression .DataTable

expression A variable that represents a Chart object.

Example

Note

Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.

The following example adds a data table with an outline border to the first chart in the active document.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        .Chart.HasDataTable = True

        .Chart.DataTable.HasBorderOutline = True

    End If

End With

See Also

Concepts

Chart Object

Chart Object Members