title | ms.service | ms.assetid | ms.date | ms.localizationpriority |
---|---|---|---|---|
Chart.DataTable property (Project) |
project-server |
858ba41c-a96c-0c3d-0faf-dcfcc448c6f9 |
06/08/2017 |
medium |
Gets an Office.IMsoDataTable object that represents the chart data table. Read-only IMsoDataTable.
expression.DataTable
expression A variable that represents a Chart object.
To see the IMsoDataTable object, right-click in the Object Browser, and then choose Show Hidden Members.
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
IMSODATATABLE
[!includeSupport and feedback]