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 theChartData.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