ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Pivot Tables (https://www.excelbanter.com/excel-discussion-misc-queries/94391-pivot-tables.html)

Jhawk1

Pivot Tables
 
How do I refresh multiple pivot tables at the same time in the same sheet
without opening & closing the file (refresh on open function) or going to
each pivot table and hitting refresh? Thanks for the help

Chip Pearson

Pivot Tables
 
You can use a VBA procedu

Sub AAA()
Dim PVT As PivotTable
For Each PVT In ActiveSheet.PivotTables
PVT.RefreshTable
Next PVT
End Sub



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Jhawk1" wrote in message
...
How do I refresh multiple pivot tables at the same time in the
same sheet
without opening & closing the file (refresh on open function)
or going to
each pivot table and hitting refresh? Thanks for the help




Jhawk1

Pivot Tables
 
Thanks Chip. That works great!

"Chip Pearson" wrote:

You can use a VBA procedu

Sub AAA()
Dim PVT As PivotTable
For Each PVT In ActiveSheet.PivotTables
PVT.RefreshTable
Next PVT
End Sub



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Jhawk1" wrote in message
...
How do I refresh multiple pivot tables at the same time in the
same sheet
without opening & closing the file (refresh on open function)
or going to
each pivot table and hitting refresh? Thanks for the help






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

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