Share via


Chart.DataTable Property (Word)

Returns the chart data table. Read-only DataTable.

Version Information

Version Added: Word 2007

Syntax

expression .DataTable

expression A variable that represents a Chart object.

Example

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