Hi Guys
Need a bit of help please.
I have put the code below together to copy all the rows from column A that meets the criteria in range ZZ1 to named range ROUTE1 in another workbook, but for some reason it won't work and i cannot figure it out.
With Application
.ScreenUpdating = False
.EnableEvents = False
End With
Dim Rng As Range
Set Rng = Range([A1], Range("A" & Rows.Count).End(xlUp))
On Error Resume Next
With Rng
.AutoFilter , field:=1, Criteria1:=Range("ZZ1").Value
.SpecialCells(xlCellTypeVisible).EntireRow.Select
Workbooks("Master.xlsm").Activate
Selection.Copy
.AutoFilter
ActiveSheet.Range("ROUTE1").PasteSpecial xlPasteValues
Application.CutCopyMode = False
End With
On Error GoTo 0
Application.EnableEvents = True
Bookmarks