I need a little help. Let's start with the code:
Range("a1").AutoFilter Field:=1, Criteria1:="W1793-PAS (Agency)"
'exclude 1st row (titles)
With Intersect(Range("a1").CurrentRegion, _
Range("2:60000")).SpecialCells(xlCellTypeVisible)
.Rows.Delete
End With
ActiveSheet.ShowAllData
If ActiveSheet.AutoFilterMode Then ActiveSheet.AutoFilterMode = False
I need to create a conditional statement for the above code that will stop the procedure if there is no text matching Criteria1 (W1793-PAS (Agency)). I don't want this to run if there is no rows with W1793-PAS (Agency) in it.