Syntax

expression.PivotTables(Index)

expression A variable that represents a Worksheet object.

Parameters

Name Required/Optional Data Type Description
Index Optional Variant The name or number of the report.

Return Value
Object

Example

This example sets the Sum of 1994 field in the first PivotTable report on the active sheet to use the SUM function.

Visual Basic for Applications
ActiveSheet.PivotTables("PivotTable1"). _ PivotFields("Sum of 1994").Function = xlSum
Get the collection of all pivottables? pivot PIVOT TABLES Pivot Tables Method PivotTables PivotTables Method Return a single pivottable?

See also: