Add Multiple Pivot Table Fields

JawShaw08

New Member
Joined
May 16, 2018
Messages
2
Hello,

I have the following fields I would like to add as values in a pivot table: 1001000, 1001010, 1001020, 1001030, 1001040, 1001050 . . . 1001820. I am familiar with the VBA code to simultaneously add all of your fields as values. However, I am creating multiple pivot tables from the same source data and only want to add smaller, consecutive portions of the fields for each separate pivot table. As an example, the first pivot table uses 1001000 through 1001200, and the second pivot table uses 1001210 through 1001400. Is there a way to do this in VBA?

Thank you.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,214,996
Messages
6,122,636
Members
449,092
Latest member
bsb1122

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