Hi,
I was trying to clean up PC in a workbook by the following code but it doesn't seem to work. Did I do anything wrong?
Please advise.
Thanks in advance.
Sub CleanMyPivots()
Dim pc As PivotCache
For Each pc In ActiveWorkbook.PivotCaches
pc.MissingItemsLimit = xlMissingItemsNone
pc.Refresh
Next
End Sub
I was trying to clean up PC in a workbook by the following code but it doesn't seem to work. Did I do anything wrong?
Please advise.
Thanks in advance.
Sub CleanMyPivots()
Dim pc As PivotCache
For Each pc In ActiveWorkbook.PivotCaches
pc.MissingItemsLimit = xlMissingItemsNone
pc.Refresh
Next
End Sub