I get an error "Application-defined or object-defined error" when running this code. It works fine if copied to the same workbook.
The culprit is ("C" & Rows.Count). What am I doing wrong? Any help would be much appreciated, thanks.
The culprit is ("C" & Rows.Count). What am I doing wrong? Any help would be much appreciated, thanks.
Code:
Range("AB1").Resize(1, 5).Copy
Workbooks("Day Book").Sheets("Sheet1").Range("C" & Rows.Count).End(xlUp).Offset(1).PasteSpecial xlPasteValuesAndNumberFormats