When recording a macro where you want to filter it would come out like the below so I presume that is static and it would always be looking for the same filter every time you run it
Selection.AutoFilter
ActiveSheet.Range("$A$1:$N$65967").AutoFilter Field:=13, Criteria1:=Array( _
"Adam", "Carl ", "Dave", "Debbie", "Jack" _
, "James", "Joanna", "Kyle", "Lewis", "Molly", _
xlFilterValues
My problem is each time I would need to run it the names will not be the same and the range will also be different.
Selection.AutoFilter
ActiveSheet.Range("$A$1:$N$72866").AutoFilter Field:=13, Criteria1:=Array( _
"Adam", "Carl ", "Dave", "Debbie", "Jack" _
, "James", "Lewis", "Molly", _
"Rebecca", "Ryan", "Sylvia"), Operator:= _
xlFilterValues
All I really want to do every time I run it is to say exclude from the filter “System Entries” and make sure the range covers all rows.
Could an expert provide me with the VBA code that will do this.
Many thanks
http://www.thespreadsheetg
then you find and remove the value you don't need
then you apply this array to your filter.