I am trying to create a macro (button) to format all slicers to a certain style on the active worksheet. I have multiple worksheets that are nearly identical (copied from a master sheet), but the following code only works on the original sheet. How do I change the slicer name to apply to all, not a specific slicer?
Code:
ActiveSheet.Shapes.Range(Array("Scope")).SelectActiveSheet.Shapes.Range(Array("Scope", "BREAKOUT")).Select
ActiveWorkbook.SlicerCaches("Slicer_Scope").Slicers("Scope").Style = _
"SlicerStyleDark1"
ActiveWorkbook.SlicerCaches("Slicer_BREAKOUT").Slicers("BREAKOUT").Style = _
"SlicerStyleDark1"