Pivot Tables

J

Jhawk1

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
 
C

Chip Pearson

You can use a VBA procedure:

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
 
J

Jhawk1

Thanks Chip. That works great!

Chip Pearson said:
You can use a VBA procedure:

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
 
Top