This part of my macro stops at line 6 below, where it throws up a runtime error...
There is no reason why it wont work as its an exact cope of line 2, but references the next column in a spreadsheet nd is for n additional series..
any ideas?
There is no reason why it wont work as its an exact cope of line 2, but references the next column in a spreadsheet nd is for n additional series..
any ideas?
Code:
ActiveChart.SeriesCollection.NewSeries
ActiveChart.FullSeriesCollection(1).Name = "='" & Left(Device, 31) & "'!R1C9"
ActiveChart.FullSeriesCollection(1).XValues = "='" & Left(Device, 31) & "'!R3C8:R" & LastRow & "C8"
ActiveChart.FullSeriesCollection(1).Values = "='" & Left(Device, 31) & "'!R3C9:R" & LastRow & "C9"
ActiveChart.FullSeriesCollection(2).Name = "='" & Left(Device, 31) & "'!R1C10"
ActiveChart.FullSeriesCollection(2).XValues = "='" & Left(Device, 31) & "'!R3C8:R" & LastRow & "C8"
ActiveChart.FullSeriesCollection(2).Values = "='" & Left(Device, 31) & "'!R3C10:R" & LastRow & "C10"