Chart.DataTable property (Project)
Gets an Office.IMsoDataTable object that represents the chart data table. Read-only IMsoDataTable.
Syntax
expression.DataTable
expression A variable that represents a Chart object.
Remarks
To see the IMsoDataTable object, right-click in the Object Browser, and then choose Show Hidden Members.
Example
The following example adds a data table with an outline border to the chart on the active report.
Sub ShowDataTable()
Dim chartShape As Shape
Dim reportName As String
reportName = "Simple scalar chart"
Set chartShape = ActiveProject.Reports(reportName).Shapes(1)
With chartShape.Chart
.HasDataTable = True
.DataTable.HasBorderOutline = True
End With
End Sub
Property value
IMSODATATABLE
See also
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.