I cant figure out what I am doing wrong here. The If part of my Macro is coming back with an Error and I am not sure why. I am trying to get it to go to end if the Auto Filter returns nothing.
VBA Code:
lr3 = ThisWorkbook.Worksheets("Scheduled Worksheet").Cells(Rows.Count, 1).End(xlUp).Row
sh1.Range("A1:AM" & lr3).AutoFilter Field:=35, Criteria1:="N"
If sh1.Range("A2:AM" & lr3).SpecialCells(xlCellTypeVisible).Rows.Count > 0 Then
Application.DisplayAlerts = False
sh1.Range("A2:AM" & lr3).SpecialCells(xlCellTypeVisible).delete
End If