Table of contents
Collapse the table of content
Expand the table of content

Chart.DataTable Property (Project)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

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

Property value


See also

Other resources

Chart Object

© 2018 Microsoft