I tried adding a second column with same heading and both filters stopped working.
This is the code the previous colleague had developed.
CritRows = Range("A1").CurrentRegion.Rows.Count
If CritRows = 1 Then
ActiveWorkbook.Names.Add Name:="Criteria", RefersTo:=Range("A1:AR2")
Else
Range("A1").CurrentRegion.Select
ActiveWorkbook.Names.Add Name:="Criteria", RefersTo:=Selection
End If
Range("A15").CurrentRegion.Select
ActiveWorkbook.Names.Add Name:="Data_Rng", RefersTo:=Selection
Range("Data_Rng").AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Range("Criteria"), CopyToRange:=Range("BA15:CR15"), Unique:=False
Range("A15").Select
mana
You can use formula as..
=and(A2<>3,A2<>8)
That had no affect either.