I'm sure this is simple, but it's got me stumped. Excel doesn't like the last line of code.
InvParticulars is a range I have named, that I want to copy from one sheet to the bottom of another sheet.
Can anyone help with my syntax?
InvParticulars is a range I have named, that I want to copy from one sheet to the bottom of another sheet.
Can anyone help with my syntax?
Code:
Sub InvoiceToRecords()
LastRecordsRow = Worksheets("Invoice Records").UsedRange.Rows.Count 'determines the # of rows used
NewRecordsRow = LastRecordsRow + 2 'Row for pasting latest invoice will be 2 rows below the end of the last invoice
Sheets("Invoice").Activate
Range("InvPatrticulars").Copy Worksheets("Invoice Records").Range(NewRecordsRow, 1)
End Sub