Muokkaa

Jaa


PivotTable.ShowPages method (Excel)

Creates a new PivotTable report for each item in the page field. Each new report is created on a new worksheet.

Syntax

expression.ShowPages (PageField)

expression A variable that represents a PivotTable object.

Parameters

Name Required/Optional Data type Description
PageField Optional Variant A string that names a single page field in the report.

Return value

Variant

Remarks

This method isn't available for OLAP data sources.

Example

This example creates a new PivotTable report for each item in the page field (the field named Country).

Set pvtTable = Worksheets("Sheet1").Range("A3").PivotTable 
pvtTable.ShowPages "Country"

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.