I am going to use a For Next loop to change the color of lines for five different series. The colors I'm using are:
msoThemeColorAccent1
msoThemeColorAccent2
msoThemeColorAccent3
msoThemeColorAccent4
msoThemeColorAccent5
The segment of the code with the loop is:
Dim j As Integer
For j=1 to 5
ActiveChart.FullSeriesCollection(j).Format.Line.ForeColor.ObjectThemeColor = #msoThemeColorAccent concatenated with j#
Next j
It seems my problem is very trivial, yet I cannot get the concatenation right, i.e. msoThemeColorAccent & j.
I am kindly asking for some advice.
Regards,
Robert
Bookmarks