I am trying to copy a 4 columns with its data from GraphColumns sheet (has 2666 rows) to another sheet within the same workbook called Graph Data. I want to paste it at the last row of Graph Data which is 12155. My code is as follows:
Sub C_P()
Dim lastrow As Integer
lastrow = Range("A" & Rows.Count).End(xlUp).Row
LR = ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row
Range("A2:D" & LR).Copy Destination:=Sheets("Graph Data").Range("A12155")
End Sub
- My lastrow isn't doing anything which I am aware off. I just want the macro to paste the .Range("last row of Graph Data") at A12155 without me calling it because I'll need it for future data as we progress.