I have prepared a pivot chart (bar graph) with few slicer. However when I select any field from the slicer the colours are getting change. Is there any workaround for this?
Try unselecting "Automatic" when you format the data series. Select a solid color or whatever you wish except automatic and colors should remain without any VBA.