I have an excel workbook with 2 sheets, Sheet1 & Sheet2. I have a table on Sheet1 with 10 individuals. I'm trying to put together a macro that will copy and paste the information from a specific range A2:I2 then copy it to the next empty row on Sheet2
This is my code so far, (it's not finished as i'm trying to build it a step at a time so I can improve my understanding of the code)
Dim NR As Long
NR = Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
Application.ScreenUpdating = False
Worksheets("Sheet1").Activate
Range("A2:I2").Select
Selection.Copy
Worksheets("Sheet2").Activate
Range("B:I" & NR).Select
I keep getting this error message
Run-Time error "1004" Method "Range" of Object' _Global Failed.
It seems to relate to the last range selection. I don't understand enough to know why it's not selecting the range required.
Any ideas?
Thanks.