Hi, I want to refresh all PivotTables in a customized chosen sheet.
I found a code how to do it in the activesheet.
How can I replace ActiveSheet with a custom sheet? Let's say I want to update all PivotTables in the sheet "Table1"
Thanks in advance![]()
Sub refreshPivots() Dim pt As PivotTable For Each pt In ActiveSheet.PivotTables pt.RefreshTable Next pt End Sub
![]()
Bookmarks