This is the code for an advanced filter I am running I am trying to find a way to make the Range("A1:A97") to be xlDown Instead I as the range values for both ranges listed in the code need to be a variable size not a defined range as the lists could be bigger or smaller then the amount listed.
Sub FilterTest ()
Range("A3, Range("A3").End(xlDown)).AdvancedFilter Action:= xlFilterInPlace, _
CriteriaRange:=Sheets("Facilities").Range("A1:A97"), Unique:= False
End Sub
Sub FilterTest ()
Range("A3, Range("A3").End(xlDown)).AdvancedFilter Action:= xlFilterInPlace, _
CriteriaRange:=Sheets("Facilities").Range("A1:A97"), Unique:= False
End Sub