Cantonalives
Member
Hi all,
Pretty certain this is a fairly simple one kicking my backside!
Basically if a cell changes I want named pivot tables to refresh. I thought I had it working as the refresh triggered, but sadly got caught in a refresh loop.
This is what I used :
On the sheet that changes:
In module:
Any help on this issue much appreciated..
Thanks,
-CL.
Pretty certain this is a fairly simple one kicking my backside!
Basically if a cell changes I want named pivot tables to refresh. I thought I had it working as the refresh triggered, but sadly got caught in a refresh loop.
This is what I used :
On the sheet that changes:
Code:
Private Sub Worksheet_Calculate()
If Range("A58").Value <> PrevVal Then
PT_REFRESH
End If
End Sub
In module:
Code:
Public PrevVal As Variant
Sub PT_REFRESH()
Worksheets("1").PivotTables("PT_refresh1").RefreshTable
End Sub
Any help on this issue much appreciated..
Thanks,
-CL.
Last edited: