• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Clear contents of a range when slicer filter is cleared.

Belleke

Well-Known Member
I have a slicer on a sheet, I would like to clear A1:B10 when Slicer filter is cleared. (nothing selected)
 
Perhaps you can adapt the attached which contains this snippet:
Code:
Private Sub Worksheet_Calculate()
Static x
y = ThisWorkbook.SlicerCaches("Slicer_hdr1").FilterCleared
If x <> y And y Then MsgBox "Clear the cells"
x = y
End Sub
 

Attachments

  • Chandoo43397.xlsm
    18.8 KB · Views: 0
Back
Top