Hello:
I need help with the below code. I'm trying to copy/paste rows from "Delimited" to "Output". I want to copy all rows (starting on row 1) to last row (which is a variable number). This will be copied to Output starting on row 2 (row 1 is for headers).
So far I have the below but all it's doing it is copying only the last row to Output - not all rows. Thanks!
Dim Lastrow As Long
Sheets("Delimited").Activate
Lastrow = ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row
ActiveSheet.Range("A" & Lastrow).EntireRow.Copy Destination:=Sheets("Output").Range("A2")
Application.Goto Sheets("Output").Range("A2")
Application.CutCopyMode = False
I need help with the below code. I'm trying to copy/paste rows from "Delimited" to "Output". I want to copy all rows (starting on row 1) to last row (which is a variable number). This will be copied to Output starting on row 2 (row 1 is for headers).
So far I have the below but all it's doing it is copying only the last row to Output - not all rows. Thanks!
Dim Lastrow As Long
Sheets("Delimited").Activate
Lastrow = ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row
ActiveSheet.Range("A" & Lastrow).EntireRow.Copy Destination:=Sheets("Output").Range("A2")
Application.Goto Sheets("Output").Range("A2")
Application.CutCopyMode = False