ChartData.ActivateChartDataWindow method (Word)

Opens a Excel data grid window that contains the full source data for the specified chart.

Syntax

expression. ActivateChartDataWindow

expression A variable that represents a ChartData object.

Return value

VOID

Remarks

If the data grid window is already open, this method has no effect.

The ActivateChartDataWindow method differs from the ChartData.Activate method in that the former opens the chart in an Excel window within Word, with the Excel ribbon unavailable, whereas the latter opens a full version of Excel, with the ribbon available.

Example

The following example shows how to activate the chart data window for the chart that is at the first index position in the collection of shapes in the active document.


Public Sub ActivateChartDataWindow_Example()

    ThisDocument.Shapes(1).Chart.ChartData.ActivateChartDataWindow

End Sub

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.