Usng Vba can i get two pivot tables to show the same data?

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,195
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,

I have two pivot tables
the first is "PivotTable2"
the other is "PivotTable3"

Now "PivotTable2" gives me result for salespeople according to a number of slicers i use

one of the columns is called "Sales Week"
And has a list o weeks like this
2020-W01
2020-W02
2020-W07
etc.

now "PivotTable3" has the same header "Sales Week"
but list different weeks because the critiors are different, so it show more weeks

like this:
2020-W01
2020-W02
2020-W03
2020-W04
2020-W05
2020-W07
etc.

now i know the pivot tales have filters and i can manually filter to only show in "PivotTable3" ,"Sales Week"
the same weeks as "PivotTable2" ,"Sales Week"

but i can't do it with a macro which i need?

now if its easier i can create a list of the weeks i want to show in Column A so instead of going to pivot table 2 you just filter "PivotTable3" ,"Sales Week" to show only the weeks in column A but i still need help on how to do this

any ideas or help would be greatly appreciated

Thank you

Tony
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,215,491
Messages
6,125,102
Members
449,205
Latest member
ralemanygarcia

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