Okay so I may be a bit over my head, I started to mess with VBA Excel yesterday and I have almost completed my task. I have been trying to pull filtered information from a couple of different sheets through advanced filter and list it on one. But with the code that I have it brings the filtered information in and copies the header for each page that I pull information from. Therefore my list has some interruptions in it by these headers. The code that brings me to this point is as follows:
Sub Filter_Refresh()
' Filter_Refresh Macro
Sheets("55920000").Range("_5592[#All]").AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Sheets("Lists and Criteria").Range("D2:D3"), CopyToRange:= _
Range("A1:AF1"), Unique:=False
y = Evaluate("=address(counta(a:a)+1,1,4)")
Sheets("55930000").Range("_5593[#All]").AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Sheets("Lists and Criteria").Range("D2:D3"), CopyToRange:= _
Range(y), Unique:=False
x = Evaluate("=address(counta(a:a)+1,1,4)")
Sheets("55940000").Range("_5594[#All]").AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Sheets("Lists and Criteria").Range("D2:D3"), CopyToRange:= _
Range(x), Unique:=False
Z = Evaluate("=address(counta(a:a)+1,1,4)")
Sheets("55950000").Range("_5595[#All]").AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Sheets("Lists and Criteria").Range("D2:D3"), CopyToRange:= _
Range(Z), Unique:=False
End Sub
Basically I want to delete the rows with the headers and any suggestions to what i have already or how to set up variables more effectively would be amazing.