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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
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
 
Upvote 0
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
 
Upvote 0
Weaver,

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

Roopen
 
Upvote 0

Forum statistics

Threads
1,214,935
Messages
6,122,337
Members
449,077
Latest member
Jocksteriom

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