Try this:
Sub blamkssss()
ActiveSheet.AutoFilterMode = False
lr = Range("a" & Rows.Count).End(xlUp).Row
Range("AC1:AC" & lr).AutoFilter Field:=1, Criteria1:="="
On Error Resume Next
Range("AC2:AC" & lr).SpecialCells(12).EntireRow.Delete
On Error GoTo 0
ActiveSheet.AutoFilterMode = False
End Sub
Above is adequate if that is the extent of your code
But if it's part of something bigger and you want to exit the code if SpecialCells finds no cells, try something like this....
Sub blamkssss()
ActiveSheet.AutoFilterMode = False
lr = Range("a" & Rows.Count).End(xlUp).Row
Range("AC1:AC" & lr).AutoFilter Field:=1, Criteria1:="="
On Error Resume Next
Range("AC2:AC" & lr).SpecialCells(12).EntireRow.Delete
ActiveSheet.AutoFilterMode = False
If Err.Number > 0 Then
On Error GoTo 0
Exit Sub
End If
'rest of your code
End Sub
Bookmarks