How to Refresh All Pivot Tables at Once in Excel

Believe me…

…if you can refresh all the pivot tables at once you can save a lot of time.

Yes, that’s right.

Just think like this…

You have 10 pivot tables and to refresh a single pivot table it takes 1-Sec.

Then...

10 Pivots = 10 Seconds

…there are few ways which you can use to automatically refresh it as well.

So now in this post...

I’m gonna share with you 3-Simple Ways which you can which you can use...

to refresh all the pivot tables and your time.

Top 3 Ways to Refresh all the Pivot Tables Automatically

Below are the methods which you can use to make all the pivot tables.

…so without any further ado let’s learn these methods.

1. Use “Refresh All” Button to Update all the Pivot Tables in the Workbook

"Refresh All" button is a simple and easy way refresh all the pivots tables in a workbook...

...with single click.

Refresh All Pivot Tables Manually With Single Click

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

excel pivot tale tips to make you master this year

2. Automatically Refresh All the Pivots When You Open a Workbook

If 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 are the steps you can use to make al 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.

3. A Simple VBA Code to Update All the Pivot Tables in a Single Click

Yes, you can use VBA as well to refresh all pivot tables.

All you have to do is just use below-mentioned code.

Sub RefreshCustomPivotTable()

With ActiveSheet

.PivotTables("PivotTable1").RefreshTable

.PivotTables("PivotTable2").RefreshTable

.PivotTables("PivotTable3").RefreshTable

.PivotTables("PivotTable4").RefreshTable

.PivotTables("PivotTable5").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.

Refresh Only Specific Pivot Tables with VBA

If you have some specific pivot tables which you want to update...

...then you can use below VBA code.

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

In the End,

Pivot tables are dynamic and it’s important to make them auto refresh.

And now, you have three different ways to this.

There best thing is:

By using VBA code, you can make selected pivot tables update in a single click.

I hope you found this post useful but now you need to tell me one thing. 

Which one is your favorite way for this?

Make sure to share your views with me in the comment section, I'd love to hear from you. And please, don’t forget to share this post with your friends, I am sure they will appreciate it.

You must Read these Next

  1. Connect a Single Slicer with Multiple Pivot Tables​: Let’s say you are working on a dashboard where you are using multiple pivot tables​...
  2. Automatically Update a Pivot Table Range​: Every time when you add new data in the source sheet you need to update the source range...
  3. Group Dates in a Pivot Table : Let’s say you want to group all the dates as months, so instead of adding a different column...
  4. Pivot Table Timeline​: ​With a timeline filter is you don’t need to open the filter again and again, you just do it with a...
  5. Pivot Table ​using Multiple Files: Sometimes we receive or capture our data in different workbooks and in that case​...
  6. Ranks in a Pivot Table: One of the common practices for analyzing data is by ranking them and ​in a pivot table...
  7. Running Total in a Pivot Table:​​ One of the things which I like about a pivot is we can easily add running total into it​...

Content Protection by DMCA.com
2018-12-08T08:05:13+00:00

4 Comments

  1. Beth 14 Oct, 18 at 11:42 am - Reply

    This code:
    Sub RefreshAllPivots()
    Dim PC As PivotCache
    For Each PC In ActiveWorkbook.PivotCachesPC
    .Refresh
    Next PC
    End Sub

    Returns “Compile error: Invalid or unqualified reference” on the .Refresh

  2. Carlos Mario Castaño 15 Jan, 18 at 3:40 am - Reply

    Please check the link to “30 Pivot Table Tricks”: Page not found.

    Carlos

  3. Raman Girdhar 24 Jun, 17 at 9:46 am - Reply

    Refresh All is just wonderful. Thanks.

    • Puneet Gogia 3 Jul, 17 at 9:53 am - Reply

      I’m so glad you liked it. 🙂

Leave A Comment