How To Refresh All Pivot Tables at Once in Excel

Search
Generic filters

Table of Contents

Believe me, if you are able to refresh all the pivot tables at once it can save a lot of your time. Yes, that’s right. Just think like this. Suppose, you have 10 pivot tables and to refresh a single pivot table it takes one sec.

10 Pivots = 10 Seconds

Just like you can automate to create a pivot table there are few ways that you can use it to automatically refresh it as well. In this post, We will share with you 3-simple ways which you can use it to refresh all the pivot tables in single click.

You can use “Refresh All” Button to Update all the Pivot Tables in the Workbook

The “Refresh All” button is a simple and easy way to refresh all the pivot tables in a workbook with a single click.

Refresh All Pivot Tables Manually With Single Click

All you need to do it is Go to Data Tab ➜ Connections ➜ Refresh All.

Another Way is Automatically Refresh All the Pivots When You Open a Workbook

In case you want to refresh all pivot tables on opening a workbook you can use following steps to make one time to set up for that.

Refresh All Pivot Tables On Opening A File
 

Below steps you can use it to make all the pivot tables auto refresh while opening a workbook.

  1. Select any of the pivot tables from your workbook.
  2. Right click on it and select “PivotTable Options”.
  3. Go To Data Tab ➜ Tick Mark “Refresh Data When Opening A File”.
  4. Click OK.

VBA Code (MACRO) to Update All the Pivot Tables in a Single Click

Yes, you can use VBA code as well to refresh all pivot tables. All you have to do is just use below-mentioned code.

Sub RefreshCustomPivotTable()

With ActiveSheet
.PivotTables.RefreshTable
End With

End Sub

Above code will refresh all the pivot tables from your active worksheet and you can also assign this macro to a button to use in a single click.

If you want to refresh only specific Pivot Tables with VBA code

Below VBA code you can use to update specific pivot table.

Sub RefreshCustomPivotTable()

With ActiveSheet

.PivotTables("PivotTable1").RefreshTable
.PivotTables("PivotTable2").RefreshTable
.PivotTables("PivotTable3").RefreshTable
.PivotTables("PivotTable4").RefreshTable
.PivotTables("PivotTable5").RefreshTable

End With

End Sub

Change the name of the pivot tables as per your workbook. And, if you want to update these custom pivot tables every time when you open a workbook, change the name of the macro to auto_open

Sub auto_open()

With ActiveSheet
.PivotTables("PivotTable1").RefreshTable
.PivotTables("PivotTable2").RefreshTable
.PivotTables("PivotTable3").RefreshTable
.PivotTables("PivotTable4").RefreshTable
.PivotTables("PivotTable5").RefreshTable
End With

End Sub

More on Pivot Table

Free Excel Templates

compound-interest-calculator

Compound Interest Calculator

Compound Interest refers to earning or paying multiple interest on …

Download Now
Attendance record

Attendance Record

Need help to keep an attendance record for your meetings, …

Download Now
UK-VAT-Payable-Calculator-Excel-Template

UK VAT Payable Calculator

UK VAT Payable Calculator Excel Template is an template that …

Download Now
Monthly_Schedule_Template_V1.0

Monthly Schedule

This Monthly Schedule template is based on our original monthly …

Download Now

We Create Your Life Easy With Our Free Excel Templates & Spreadsheet Dashboards

Use free Excel Templates, Tools and Dashboards to create and draft a professional looking dashboards and computation sheet for your personal and business use. You can Explore Calendars, Activity Planners, Invoice Templates, Sales Forecast Sheets, Budget templates and various business information delivering Templates in Excel and Spreadsheet at XLSX Templates. 

These templates, dashboards and tools are useful in various occasions. You can also customize these templates as per your requirement. Modification of fields and data source helps in making the template more relevant.

Learn Microsoft Excel : Blogs and Articles

Learn about various tips and tricks in Microsoft Excel and Spreadsheet. Create best templates and dashboards using free tricks and tutorials in excel and spreadsheet. These tutorial posts are useful for everyone who wants to master the skills in excel and spreadsheet.