Hi,
I have this working code to clear slicers for entire workbook but unfortunately struggling to adapt it to work for current worksheet.
Sub Clearslicerworkbook()
Dim slcr As SlicerCache
' Clear slicer filters
For Each slcr In ActiveWorkbook.SlicerCaches
slcr.ClearManualFilter
Next slcr
' Simulate Ctrl + Home keypress
Application.SendKeys "^{HOME}"
End Sub
Many Thanks
I have this working code to clear slicers for entire workbook but unfortunately struggling to adapt it to work for current worksheet.
Sub Clearslicerworkbook()
Dim slcr As SlicerCache
' Clear slicer filters
For Each slcr In ActiveWorkbook.SlicerCaches
slcr.ClearManualFilter
Next slcr
' Simulate Ctrl + Home keypress
Application.SendKeys "^{HOME}"
End Sub
Many Thanks