How to update slicer cache with VBA
问题 I'm using Excel VBA to hide/show elements on slicer depending upon user selection. I have the following code : Private Sub removeFilterWithSlicer() Dim slicerCache As slicerCache Set slicerCache = ThisWorkbook.SlicerCaches("Slicer_Channel1") slicerCache.SlicerItems("A").Selected = False slicerCache.SlicerItems("B").Selected = False slicerCache.SlicerItems("C").Selected = False slicerCache.SlicerItems("D").Selected = False slicerCache.SlicerItems("E").Selected = False slicerCache.SlicerItems(