I have multiple workbooks with several charts in each.
I have code to open each workbook and select the charts, but I'd like to update the overall colour scheme of each chart to a different colour (see image)
The recorder gives me the .ChartColor = 11 (property), however, when i run it in my code, it debugs with Object does not support this property??
Any idea how I can change the default Excel chart colours to a theme colour as in the image?
My code:
Code: Select all
For iChart = 1 To ActiveSheet.ChartObjects.Count
Set chtob = ActiveSheet.ChartObjects(iChart)
With chtob
.Activate
.ChartColor = 11
End With
Next