Version Information
Version Added: Excel

Syntax

expression.ClearTable

expression A variable that represents a PivotTable object.

Remarks

The ClearTable function takes no arguments and is available for both relational and OLAP PivotTables.

Example

The following example clears a PivotTable on the active worksheet.

Visual Basic for Applications
ActiveSheet.PivotTables(1).ClearTable()

See also: