I have a code snipit to clear my PT Cache prior to entering a new data set.
Sub Clean_Pivots()
For Each pt In ActiveSheet.PivotTables
pt.PivotCache.MissingItemsLimit = xlMissingItemsNone
Next
End Sub
Will any harm come to me if I have this code in upon worksheet.activate event rather than maybe having a button to execute the code only when I need to?
Thanks.
Sub Clean_Pivots()
For Each pt In ActiveSheet.PivotTables
pt.PivotCache.MissingItemsLimit = xlMissingItemsNone
Next
End Sub
Will any harm come to me if I have this code in upon worksheet.activate event rather than maybe having a button to execute the code only when I need to?
Thanks.