I have created a PowerQuery Report. And I need to export 3 different excel files every week and save them in the same folder, and the data columns positions are different in these 3 weekly files. After I export the data, I also need to delete the lines based on the cell value of a column. I'm doing it by putting a filter in that column to hide the lines with cell value begin with "VR", "VP", "LR" & "LP" (The lines begin with "VR", "VP", "LR" & "LP" are the lines I need to keep). Then delete all the visible lines.
I'm writing a VBA code to delete those lines. Below is my code but it didn't filter anything when I run the code. Can someone please give me somoe suggestion to make it work? Many thanks
ActiveWorkbook.ActiveSheet.Range("A1").CurrentRegion.AutoFilter Field:=7, Criteria1:=Array("<>VR*", "<>VP*", "<>LR*", "<>LP*"), Operator:=xlAnd
