If you are using XL2002 or better then there is a refresh table event in VBA.
In the sheet with the pivot table add this code...
Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
End Sub
If you are using a version of XL prior to 2002 then there is no event and
you need to catch the calculate event or something similar which carries a
lot of overhead with it...
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.