Two Pivot Tables One Filter

workindan

New Member
Joined
Jun 7, 2010
Messages
32
On one sheet I have two pivot tables drawing from two different data sources...however, both data sources use the same list of names, therefore the "Name" field in both pivot tables have matching data.

PivotTable1 is the main table with various breakdowns, PivotTable2 contains some higher level summary data from another dept...

How can I get PivotTable2's "name" filter to refresh and reflect PivotTable1's "name" filter every time PivotTable1 is changed? I am also using a slicer to choose each person for PivotTable1.

I've tried doing worksheet_change and automating it, but this of course leads to an endless loop and a crash.

Thoughts?
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi workindan,

I've tried doing worksheet_change and automating it, but this of course leads to an endless loop and a crash.

To prevent an endless loop when using events, temporarily set the Application.EnableEvents to False...

Rich (BB code):
Application.EnableEvents = False
'.....your code that might trigger other events
Application.EnableEvents = True

Sounds like you have a pretty good idea how to solve the rest of your question once you overcome that part. Let me know if you need any more help.
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,181
Members
452,893
Latest member
denay

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