Perksy_no1
Well-known Member
- Joined
- Oct 27, 2011
- Messages
- 598
- Office Version
- 365
- Platform
- Windows
Hi There,
I was wondering if it possible to have a work sheet change event on a pivot table but only relelvent when changing a certain field?
I've tried the following piece of code but it doesnt seem to work
Thanks in advance for any help you can offer
Mark
I was wondering if it possible to have a work sheet change event on a pivot table but only relelvent when changing a certain field?
I've tried the following piece of code but it doesnt seem to work
Code:
If Target.Address(False, False) = "B2" Then
Application.ScreenUpdating = False
Application.StatusBar = "Getting latest order data"
Application.Calculation = xlCalculationManual
ActiveSheet.PivotTables("PivotTable20").PivotFields("Req Period Current Month").ClearAllFilters
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
Application.StatusBar = False
End If
Thanks in advance for any help you can offer
Mark
Last edited by a moderator: