If I use VBA in Excel to make a line chart with multiple series, and two of the series' data are very similar so that their chart series lines partly overlap, the last one written is in front of earlier ones written.
In the Worksheet_Change
event, I want to be able to go back and forth between which chart series line is in front, based on user actions that change the data. Can I do that without deleting and recreating the chart?
Here's how I'm identifiying the series line, for example here's series 2:
Sheet1.ChartObjects("MyChart").Chart.SeriesCollection(2)
Getting TypeName
on that returns Series
. I see Series
in help, but with no information on its properties and methods. I don't see Series
in the Object Browser (I'm on Excel 2007). I was able to get a list of properties and methods in the context help dropdown, but I didn't see anything promising in the dropdown.
So, can I bring a chart series to the front/send it to the back, without deleting and recreating the chart?