PivotTable.ShowPages

CoconutP

New Member
Joined
Aug 11, 2021
Messages
12
Office Version
  1. 365
Platform
  1. Windows
I am able to use the Excel Pivot function (under "Options") of pasting a new pivot table into a new sheet based on the Filter in my pivot table. However, the pivot table will only paste in cell A1 of each new worksheet. I'm trying to figure out how I can have it pasted in a different cell in each worksheet. I can try using the below VBA:

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

A few questions on the above:
- "Sheet 1" is the worksheet where the original pivot table is?
- "A3" is the cell for the original pivot table? Which cell of the pivot table should go in here?
- "Country" - that's just the filter I would like to use which each new pivot will be filtered by?

Also, what would be the syntax to specify the cell to paste each new pivot?

Thank you!
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,214,867
Messages
6,122,002
Members
449,059
Latest member
mtsheetz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top