The case:
Excel 2013, Multiple cheets with multiple charts of different type. Several charts doesn't show well will the defaut color automatically generated by Excel. -> The idea is to modify these graphics only with a specific color combination (modifying the color of the series)
I'm able to modify the color of each series of 1 chart using the UI. but there are many charts so doing them with a simple macro would speed these repeative steps.
I turned on the macro recording to capture the change of the color of a selected serie in a selected chart.
The generated code is:
ActiveChart.Legend.LegendEntries(1).Select
With Selection.Format.Fill
.Visible = msoTrue
.ForeColor.ObjectThemeColor = msoThemeColorAccent3
.ForeColor.TintAndShade = 0
.ForeColor.Brightness = -0.25
.Transparency = 0.3000000119
.Solid
End With
When I execute the macro, Excel trigger an error:
Execution error -2147467259 (80004005)
method "Fill" of object "ChartFormat" has failed (this is a translated error message, as I run a french version)
Any idea why Excel cannot run its own generated code ?
Thanks in advance.
- Edited by gdhont 18 hours 24 minutes ago