I'm trying to improve my macro to run a filter on Col Y and delete specific values. Col Y can be "DT", "IO", "PS", "RO", "TI", "TO", "WO", "ZZ" "(Blank)" but I only want to keep "IO", "PS", "RO".
I tried putting a space into each cell in the entire row where there is a value I want to delete, but the report changes daily and the number of orders is different every day.
Is there a way to do this through my macro? I can't put a filter on after the macro because I'm making a pivot table immediately after and it includes all data. Do I have to put a filter on after the macro runs, then put a filter on and delete all lines with the Col Y values I want to delete?
I tried putting a space into each cell in the entire row where there is a value I want to delete, but the report changes daily and the number of orders is different every day.
Is there a way to do this through my macro? I can't put a filter on after the macro because I'm making a pivot table immediately after and it includes all data. Do I have to put a filter on after the macro runs, then put a filter on and delete all lines with the Col Y values I want to delete?