ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Refresh all pivot tables in a workbook (https://www.excelbanter.com/excel-discussion-misc-queries/31882-refresh-all-pivot-tables-workbook.html)

nc

Refresh all pivot tables in a workbook
 
Hi

How to write a macro to refresh all pivot tables in a workbook?

Phil Wales

I'm not a VB expert - but

You should just be able to record a macro while clicking the refresh button
for each pivot table, then assign a button to it.





"nc" wrote:

Hi

How to write a macro to refresh all pivot tables in a workbook?


nc

Hi Phil

I think there is a refresh all keyword.

"Phil Wales" wrote:

I'm not a VB expert - but

You should just be able to record a macro while clicking the refresh button
for each pivot table, then assign a button to it.





"nc" wrote:

Hi

How to write a macro to refresh all pivot tables in a workbook?


Debra Dalgleish

Use the RefreshAll method:

ActiveWorkbook.RefreshAll

Or, open the External Data toolbar, and click the Refresh All button.

nc wrote:
Hi

How to write a macro to refresh all pivot tables in a workbook?



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html



All times are GMT +1. The time now is 08:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com