Reset all slicers/filters to original/preset settings.

lowboy

New Member
Joined
Dec 17, 2017
Messages
1
I have an Excel workbook with one data set and numerous pivot tables. There are numerous slicers that apply to all pivot tables and then a few that only apply to specific pivot tables. There are a few slicers that I preset to show only specific data before I send out the link to the file to my team for use. The file is checked out to me so that the users can open, evaluate, filter, etc. but cannot save the file.

What I want to be able to provide is a button that resets the entire workbook to the preset values for every filter or slicer setting and not necessarily clear all filters.

I know I could instruct the users to just close the file and re-open, but that is not how I was hoping to provide this solution.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
A simple solution might be to keep a separate sheet that contains an unedited version of those pivot tables. A macro can just copy that template sheet to replace the sheet the user was working on.

Since it sounds like the "Preset Values" might change, there will need to be a config section that the macro references to reset each slicer individually. You would probably want a second macro that fills the config section by reading all the slicers.
 
Upvote 0

Forum statistics

Threads
1,224,787
Messages
6,180,950
Members
453,008
Latest member
GRTMAN

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