• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Pivot table refresh to refresh filter as well

ADB123

New Member
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
 

Attachments

  • Grasstree Parts Staging List 2.1.xlsm
    70.8 KB · Views: 1
Back
Top