Hi Guys -
I have this code. The 2nd part fails (Doesn't move to EFCFilter on error) whenever there is no matching filter criteria in 1st part. But, runs perfectly if there is matching filter criteria found in 1st part. Any thought?
Note: I don't want to combine multiple criteria. I need it separately as is.
I have this code. The 2nd part fails (Doesn't move to EFCFilter on error) whenever there is no matching filter criteria in 1st part. But, runs perfectly if there is matching filter criteria found in 1st part. Any thought?
Code:
[B]'--------------------------1st Part----------------------------------------------[/B]
On Error GoTo ACT2
AutoFilterMode = False
Range("A1").Select
Selection.AutoFilter
Selection.AutoFilter Field:=18, Criteria1:="False"
ActiveSheet.UsedRange.SpecialCells(xlCellTypeVisible).Areas(2).Select
With Selection.Font
.Color = -16776961
.TintAndShade = 0
End With
Selection.Font.Bold = True
[B]'--------------------------2nd Part----------------------------------------------[/B]
ACT2:
On Error GoTo EFCFilter
AutoFilterMode = False
Range("A1").Select
Selection.AutoFilter
Selection.AutoFilter Field:=18, Criteria1:="=#N/A"
ActiveSheet.UsedRange.SpecialCells(xlCellTypeVisible).Areas(2).Select
With Selection.Font
.Color = -16776961
.TintAndShade = 0
End With
Selection.Font.Bold = True
Note: I don't want to combine multiple criteria. I need it separately as is.