I would be super grateful if someone with VBA knowledge could give me VBA code for recolouring all series in the active chart to the same RGB colour.
Edit: Line series with no markers
I would be super grateful if someone with VBA knowledge could give me VBA code for recolouring all series in the active chart to the same RGB colour.
Edit: Line series with no markers
Last edited by HanJam; 10-03-2019 at 06:41 AM.
Courtesy of Andy Pope I managed to do it with the following code:
Sub recolour()
Dim objSeries As Series
With ActiveChart
For Each objSeries In .SeriesCollection
With objSeries.Format.Line
'.Transparency = 0
'.Weight = 1.5
.ForeColor.RGB = RGB(68, 114, 196)
End With
Next
End With
End Sub
This is courtesy of yujin who helped me a few weeks ago, you can add more colours if needed in the array.
It worked well for me, hope it does for you too.
![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks