ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   refresh event pivot (https://www.excelbanter.com/excel-programming/389155-refresh-event-pivot.html)

Donica

refresh event pivot
 
I'd like to know simple code to trigger my code on a refresh or change event
on a pivot. Just not sure how to get it to activate..

thanks,

--
Regards,

Donica


Jim Thomlinson

refresh event pivot
 
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...
--
HTH...

Jim Thomlinson


"Donica" wrote:

I'd like to know simple code to trigger my code on a refresh or change event
on a pivot. Just not sure how to get it to activate..

thanks,

--
Regards,

Donica



All times are GMT +1. The time now is 12:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com