Dear All,
I am using the following to refresh ALL Pivot Slicers in ALL worksheets of my Workbook:
Sub Slicer()
Dim slcr As SlicerCache
For Each slcr In ActiveWorkbook.SlicerCaches
slcr.ClearManualFilter
Next slcr
Call Refresh
End Sub
Question: how do I get this to work on ONLY the Active Sheet??? i.e. I don't want it to run on all the pivots in the entire Workbook...
Many thanks,
JonesyUK
I am using the following to refresh ALL Pivot Slicers in ALL worksheets of my Workbook:
Sub Slicer()
Dim slcr As SlicerCache
For Each slcr In ActiveWorkbook.SlicerCaches
slcr.ClearManualFilter
Next slcr
Call Refresh
End Sub
Question: how do I get this to work on ONLY the Active Sheet??? i.e. I don't want it to run on all the pivots in the entire Workbook...
Many thanks,
JonesyUK