Table of contents
TOC
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.

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

Other resources

Chart Object

© 2018 Microsoft