S
spectrallypure
Hi all! I have the following little code that processes the series in
the active chart:
Sub RemoveOldSeriesInActiveChart()
ActiveChart.SeriesCollection(12).Delete
ActiveChart.SeriesCollection(11).Delete
'(...lots of other similar operations...)
End Sub
The problem is that (obviously) it only works on a single chart. I
need to extend the code to perform those operations not only on the
active chart but on all and each of the selected charts (the charts
would be selected using the mouse and holding down the CTRL key).
Unluckily enough, I haven't been able to find a way of looping through
all the charts in a selection of charts. Could somebody please give a
hint of how to accomplish this? Thanks in advance for any help!
Regards,
Jorge Luis.
the active chart:
Sub RemoveOldSeriesInActiveChart()
ActiveChart.SeriesCollection(12).Delete
ActiveChart.SeriesCollection(11).Delete
'(...lots of other similar operations...)
End Sub
The problem is that (obviously) it only works on a single chart. I
need to extend the code to perform those operations not only on the
active chart but on all and each of the selected charts (the charts
would be selected using the mouse and holding down the CTRL key).
Unluckily enough, I haven't been able to find a way of looping through
all the charts in a selection of charts. Could somebody please give a
hint of how to accomplish this? Thanks in advance for any help!
Regards,
Jorge Luis.