VBA Refreshing Pivot Tables without losing Filter selection

btadams

Well-known Member
Joined
Jan 6, 2003
Messages
1,943
I have a feeling there's nothing that can be done, but I'm using a macro to create site-specific reports from a master file. So the macro filters the data so it just has data for a specific site and then it refreshes all the pivot tables in the workbook. So PivotTable #1 is filtering on Provider_Specialty and it should always be set to "Other". However, if a site does not have any "Other" providers, the filter changes to whatever type of provider that site has. Is there any way to keep that filter from changing? Or am I going to have to have the macro check to see if the filters on all pivot tables are what they are supposed to be?

Thanks,

Brian
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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