title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
ChartArea.ClearContents method (Word) |
vbawd10.chm160039025 |
|
|
d6642767-e8f5-8834-ec8f-e78ae2994a7b |
06/08/2017 |
medium |
Clears the data from a chart but leaves the formatting.
expression.ClearContents
expression A variable that represents a 'ChartArea' object.
The following example clears the chart data from the first chart in the active document but leaves the formatting intact.
With ActiveDocument.InlineShapes(1)
If .HasChart Then
.Chart.ChartArea.ClearContents
End If
End With
[!includeSupport and feedback]