Hi,
I'm trying to set up an advanced filter that updates automatically and here's my code:
Sub advancedfilter()
Sheets("Sheet1").Range("A9:N151").AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Sheets("Sheet1").Range("K1:K2"), _
CopyToRange:=Sheets("Sheet2").Range("A8:N8") _
, Unique:=False
End Sub
I keep on getting the error 1004 - method of range fail. If i could please get some help on what the issue may be that would be much appreciated!
Thank you!
I'm trying to set up an advanced filter that updates automatically and here's my code:
Sub advancedfilter()
Sheets("Sheet1").Range("A9:N151").AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Sheets("Sheet1").Range("K1:K2"), _
CopyToRange:=Sheets("Sheet2").Range("A8:N8") _
, Unique:=False
End Sub
I keep on getting the error 1004 - method of range fail. If i could please get some help on what the issue may be that would be much appreciated!
Thank you!