abitslow
Technical User
- Apr 25, 2003
- 44
Hi,
having defined a term "LastRow" for the value of the last row of data in a column, I tried the following which doesn't seem to work.
Can I refere to a range in this way or have I gone wrong and I must use some other means of defining it? The range itself may vary in length depending on user input.
Many thanks.
having defined a term "LastRow" for the value of the last row of data in a column, I tried the following which doesn't seem to work.
Code:
LastRow = Sheets("Grid_ML").Range("O2").Value
Sheets("Print_Sheet").Activate
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.SeriesCollection.Add _
Source:=Worksheets("Grid_ML").[b]Range(Cells(2, 7), Cells(LastRow, 8))[/b], _
PlotBy:=xlColumns
Many thanks.