Macro for refresh PivotTable not working
Posted by Ken on November 14, 2001 7:21 AM
I need a macro that will refresh all PivotTables within a workbook when the macro button is pressed. Juan Pablo kindly gave me this macro, however it is hanging up and I don't know enough about VBA to correct it.
Sub RefereshAll()
Dim Sh as Worksheet
Dim Pt as PivotTable
For each Sh in Sheets
For each Pt in Sh
Pt.Refresh
Next Pt
Next Sh
End Sub
Thank you very much
Ken