Hi Guys
I us the below code to refresh my pivot table after importing fresh data. I could like to choose the new date range to update the SCHED_DATE filter before going on to the next code.
Any help will be apriciated
Sub RefreshAllPivotTables()
Dim PT As PivotTable
Dim WS As Worksheet
For Each WS In ThisWorkbook.Worksheets
For Each PT In WS.PivotTables
PT.RefreshTable
Next PT
Next WS
End Sub
I us the below code to refresh my pivot table after importing fresh data. I could like to choose the new date range to update the SCHED_DATE filter before going on to the next code.
Any help will be apriciated
Sub RefreshAllPivotTables()
Dim PT As PivotTable
Dim WS As Worksheet
For Each WS In ThisWorkbook.Worksheets
For Each PT In WS.PivotTables
PT.RefreshTable
Next PT
Next WS
End Sub