Skip to content

Latest commit

 

History

History
56 lines (33 loc) · 1.14 KB

Project.chart.datatable.md

File metadata and controls

56 lines (33 loc) · 1.14 KB
title ms.service ms.assetid ms.date ms.localizationpriority
Chart.DataTable property (Project)
project-server
858ba41c-a96c-0c3d-0faf-dcfcc448c6f9
06/08/2017
medium

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

Chart Object

[!includeSupport and feedback]