Hello all,
I have some data in Sheet 2 on a spreadsheet from Row A2 to F2. I am trying to copy this with a macro and paste this into sheet 1 after identifying the row on that sheet without data.
I am a baby when it comes to VBA, however trying to learn this since it is so badly needed in my new job.
Below find the macro I have been messing around with. I am getting Debug error in Last Row line.
Thanks,
Ram
Sub Macro1()
'
' Macro1 Macro
Range("A2:F2").Select
Selection.Copy
LastRow = Worksheets("Sheet 1").Range("A65536").End(xlUp).Row
ActiveSheet.Paste
End Sub
I have some data in Sheet 2 on a spreadsheet from Row A2 to F2. I am trying to copy this with a macro and paste this into sheet 1 after identifying the row on that sheet without data.
I am a baby when it comes to VBA, however trying to learn this since it is so badly needed in my new job.
Below find the macro I have been messing around with. I am getting Debug error in Last Row line.
Thanks,
Ram
Sub Macro1()
'
' Macro1 Macro
Range("A2:F2").Select
Selection.Copy
LastRow = Worksheets("Sheet 1").Range("A65536").End(xlUp).Row
ActiveSheet.Paste
End Sub