Hello helpful peeps! I have a massive macro that is run every month on files that are received from an outside source. It worked last month, but this month I received an error. The file received has not changed, nor has the code. I don't get it. Any help is appreciated! The line where the code is red.
Rich (BB code):
'Clean and set up EB Other Locals Adjustment workbook
Dim lr8 As Long
Dim lr9 As Long
Sourcewb2.Activate
Columns("D").Delete
'Filter, copy, paste
lr8 = Cells(Rows.count, "A").End(xlUp).Row
Columns("K:K").AutoFilter
ActiveSheet.Range("$A$1:$P$" & lr8).AutoFilter Field:=11, Criteria1:="<0"
Range("$A$1:$P$" & Cells(Rows.count, "A").End(xlUp).Row).SpecialCells(xlCellTypeVisible).Copy
ThisWorkbook.Activate
Sheets("Eastbay Adjustments").Select
lr9 = Cells(Rows.count, "A").End(xlUp).Row
Cells(Rows.count, 1).End(xlUp).Offset(2, 0).PasteSpecial xlPasteValues
Application.CutCopyMode = False
Last edited by a moderator: