Hi,
Column A has values that are dynamic references that change based on other inputs. Some rows will often have no data, so the value for these in column A is "0".
I need a macro that will filter OUT all the rows with "0".
The problem is that when I record my macro, it actually filters IN the other values, which are specific to when the macro is first recorded. So when the values change, none are found because it is looking for the ones originally specified in the macro.
ActiveSheet.Range("$A$8:$AL$101").AutoFilter Field:=1, Criteria1:=Array( _
"Marker 001", "Marker 002", "Marker 003", "Marker 004", "Marker 005"), Operator:= _
xlFilterValues
The "Markers" will have different names as the spreadsheet is used.
Can this be fixed relatively easily? I know some advise against using filters altogether, but this is not an option for me...
Thanks very much,
Sara
Column A has values that are dynamic references that change based on other inputs. Some rows will often have no data, so the value for these in column A is "0".
I need a macro that will filter OUT all the rows with "0".
The problem is that when I record my macro, it actually filters IN the other values, which are specific to when the macro is first recorded. So when the values change, none are found because it is looking for the ones originally specified in the macro.
ActiveSheet.Range("$A$8:$AL$101").AutoFilter Field:=1, Criteria1:=Array( _
"Marker 001", "Marker 002", "Marker 003", "Marker 004", "Marker 005"), Operator:= _
xlFilterValues
The "Markers" will have different names as the spreadsheet is used.
Can this be fixed relatively easily? I know some advise against using filters altogether, but this is not an option for me...
Thanks very much,
Sara