Hi
I have a dynamic chart with a varying number of data series.
I would like to create a macro to make the data labels colour match the line colour.
I have tried the code below, but it seems to match 1 data series, but the rest - the data labels are coloured white?
Any ideas on how to do this?
Thanks
Dim ser As Series
For Each ser In ActiveSheet.ChartObjects("Chart 43").Chart.SeriesCollection
With ser.DataLabels
.Format.TextFrame2.TextRange.Font.Fill.ForeColor = ser.Format.Line.ForeColor
End With
Next ser
Bookmarks