Excel: Refresh multiple pivot tables with a button


Question:  Is it possible to create a button in Excel that will refresh/update multiple pivot tables?


Answer:  Yes, you can refresh multiple pivot tables with a button. To do this:


Under the View menu, select Toolbars > Forms.




Create a button in your spreadsheet using the Forms toolbar. To do this, click on the button icon (currently highlighted in picture below) and click on your spreadsheet where you would like the button to appear.




After creating the button, the Assign Macro window should appear. Click on the "New" button.




Then paste in similar code as below in the Button_Click event:


Sheets("Sheet1").Select
ActiveSheet.PivotTables("PivotTable1").RefreshTable
Sheets("Sheet2").Select
ActiveSheet.PivotTables("PivotTable2").RefreshTable




You will need to replace the Sheet1 and Sheet2 with the names of your sheets and PivotTable1 and PivotTable2 with the names of your pivot tables.


To find out the name of a pivot table, right-click on the pivot table and select Table Options.


Spreadsheet News


Book Shop


Visit our busy book shop, were you can find latest books for beginners as well as advanced excel users.



Excel Spreadsheet Software Library




Spreadsheet123

Spreadsheet 123 Spreadsheet Software Development

Home | About Us | Our Services | Software | Spreadsheets Library | Excel Tutorials | Useful Links | Site Map | Contact Us
Home
About Us
About Spreadsheet
Book Shop
Excel Tutorials
1
Spreadsheets Library
3
4
5
6
Our Services
8
Site Map
Software
11
12
13
14
15
16
17