ShowPages Method
Applies To
PivotTable object.
Description
Creates a new PivotTable for each item in the page field. Each new PivotTable is created on a new worksheet.
Syntax
expression.ShowPages(PageField)
expression Required. An expression that returns a PivotTable object.
PageField Optional Variant. A string that names a single page field in the PivotTable.
Example
This example creates a new PivotTable for each item in the page field, which is the field named "Country."
Set pvtTable = Worksheets("Sheet1").Range("A3").PivotTable
pvtTable.ShowPages "Country"