Actually the problem is, I am using Slicers..
My requirement is simple.. When The above code is executed and the Pivot Updates the below code is called. When I execute the Sub WhoElseGotIt I want the red line to be executed, but not when a slicer button updates the Pivot Table. The slicer also triggers the Pivot Update event indirectly, and hence PT.ClearTable clears the table, which spoils the remaining procedure..
So In short, I want the PT.ClearTable line to be executed only when the Pivot Table is updated by a Sub and not by the slicer..
Bookmarks