I am trying to copy the last row of sheet 1 which changes everytime, down the amount of rows on sheet2. I have formulas in the last row of sheet1 and would like them carried down.
Below is my code where I select the last row to copy but I cant get it to go down the amount of rows on sheet2.
I need to copy the last row (which a macro puts formulas in) on sheet1. Then I need to copy that last row down the amount of rows on sheet2. Sheet2 data is from A2 to last row of sheet2.
Sheets("2018").Activate
Dim nRow As Long, nColumn As Long
nRow = Cells(Rows.Count, "A").End(xlUp).Row
nColumn = Cells(nRow, Columns.Count).End(xlToLeft).Column
Range(Cells(nRow, "A"), Cells(nRow, nColumn)).Select
Set lastrow = Range(Cells(nRow, "A"), Cells(nRow, nColumn))
bottomrow = Sheets("Needs_Assignment").Cells(Rows.Count, "A").End(xlUp).Row
Range(lastrow).AutoFill Destination:=Range(bottomrow), Type:=xlFillDefault
Thank you