Kind of new to this. I'm trying to copy range A:H from sheet 17 of one workbook to sheet 1 of another workbook (both already open). I got it to work, but it pasted to the top of sheet 1, I need it to paste to the next available blank row. I'm new at this and can't really figure out how to set my range to that? I tried a few things I found throughout various sites and forms, but couldn't get it to work. What's below is the last thing I've tried, still pops an error.
Thanks for any help you can give me.
Code:
Sub CopyData()
Dim Wb1 As Workbook, wb2 As Workbook
Set Wb1 = ThisWorkbook
Set wb2 = Workbooks("invoiceTEST.xls")
Wb1.Sheets(17).Range("A:H").CurrentRegion.Copy wb2.Sheets("Invoice1").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
End Sub
Thanks for any help you can give me.