Pivot Table(s)

Roopen

Board Regular
Joined
Apr 10, 2008
Messages
158
Hi All,

Hoping someone can help.. I have a spreadsheet that has about 5 pivots in one workbook... I am trying to find a way that if I change one of the pivots in the workbook the other pivots underneath will automatically refresh..

Is this possible or is there a macro that can do this?

Your help is always greatly appreciated

Roopen
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Xavier77

New Member
Joined
Jul 23, 2010
Messages
7
Hi Roopen,

You can create a macro to refresh all tables simultaneously.

Simply start recording the macro, refresh all tables and stop recording was all tables have been completed.

Hope this helpls

Xavier
 

Weaver

Well-known Member
Joined
Sep 10, 2008
Messages
5,196
This might be more 'universal'

Code:
Sub refreshAllPivots()
    For Each ws In ActiveWorkbook.Worksheets
        For Each pt In ws.PivotTables
            pt.PivotCache.Refresh
        Next pt
    Next ws
End Sub
 

Roopen

Board Regular
Joined
Apr 10, 2008
Messages
158
Weaver,

This is more what I was after thank you so much... Saved me doing manual recording of a macro.

Roopen
 

Forum statistics

Threads
1,136,794
Messages
5,677,778
Members
419,719
Latest member
evo2411

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
Top