Set a breakpoint and check the value of lastrow is valid and expected.
This Copy instruction getting Subscript out of Range error 9 - 1st 2 of these 3 stmts worked great
Al Bailey
1
Reputation point
Workbooks.Open "E:\POS2INV\InvSys.xlsm" 'open rcvr fldr&wkbk, empty rcvr sheet1, & copy sndr sheet to rcvr sheet
Workbooks("InvSys").Worksheets("Sheet1").Cells.ClearContents
Workbooks("getPOSplants").Worksheets("pivot").Range("A1:L" & lastrow).Copy _
Workbooks("InvSys").Worksheets("Sheet1").Range("A1")