Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 868 Bytes

Word.ChartArea.ClearContents.md

File metadata and controls

45 lines (28 loc) · 868 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
ChartArea.ClearContents method (Word)
vbawd10.chm160039025
vbawd10.chm160039025
Word.ChartArea.ClearContents
d6642767-e8f5-8834-ec8f-e78ae2994a7b
06/08/2017
medium

ChartArea.ClearContents method (Word)

Clears the data from a chart but leaves the formatting.

Syntax

expression.ClearContents

expression A variable that represents a 'ChartArea' object.

Example

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

See also

ChartArea Object

[!includeSupport and feedback]