Why does below auto filter fail when CurrentRegion was added. What will be the correct code to fix the 1004-The extract name has a missing or invalid name. I need to have a variable region for the auto filter?
The code
Sub DATA()
' DATA Import macro
Sheets("ACC&WD").Range("B8").CurrentRegion.AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Range("L10:T11"), CopyToRange:=Range("B15:J15"), Unique:= _
False
End Sub
Thanks Ian
The code
Sub DATA()
' DATA Import macro
Sheets("ACC&WD").Range("B8").CurrentRegion.AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Range("L10:T11"), CopyToRange:=Range("B15:J15"), Unique:= _
False
End Sub
Thanks Ian