hi all, Im working on a macros involving different pivot tables and slicers. When I run the following:
i get a run time error which tells me "the slicer cache already exists" i even changed the name from KPI 1 to sKPA and still no dice.
any reason why I would be receiving this error?
thanks!
Code:
ActiveWorkbook.SlicerCaches.Add(ActiveSheet.PivotTables("sAPivot"), _ "KPI 1 Percentage").Slicers.Add ActiveSheet, , "KPI 1 Percentage", _
"KPI 1 Percentage", 155, 490, 145, 200
any reason why I would be receiving this error?
thanks!