[FONT="]If recorded control shifting down on C1 VBA creates a defined cell range instead of a dynamic one[/FONT]
[FONT="]Range("C1:C13"), CopyToRange:=Range("D1"), Unique:=False[/FONT]
[FONT="]So I tried to insert VBA I thought would correct the issue because it works normally but got this error[/FONT]
[FONT="]Wrong number of arguments or invalid property assignment[/FONT]
[FONT="]'[/FONT]
[FONT="]Application.CutCopyMode = False[/FONT]
[FONT="]Application.CutCopyMode = False[/FONT]
[FONT="]Application.CutCopyMode = False[/FONT]
[FONT="]Application.CutCopyMode = False[/FONT]
[FONT="]Range("A1:B24112").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:= _[/FONT]
[FONT="]Range("c1").End(xlDown, CopyToRange:=Range("D1"), Unique:=False)[/FONT]
[FONT="]The range cell vba code works; provides the appropriate output. How can I define that criteria selection in C1 to to be dynamic[/FONT]
[FONT="]In case someone doesn't know what action i'm talking about, Data Tab, sort & filter group, advanced filter brings up this box and the" criteria range" box is the issue.[/FONT]
[FONT="]https://imgur.com/a/lPr4Sos[/FONT]
[FONT="]Range("C1:C13"), CopyToRange:=Range("D1"), Unique:=False[/FONT]
[FONT="]So I tried to insert VBA I thought would correct the issue because it works normally but got this error[/FONT]
[FONT="]Wrong number of arguments or invalid property assignment[/FONT]
[FONT="]'[/FONT]
[FONT="]Application.CutCopyMode = False[/FONT]
[FONT="]Application.CutCopyMode = False[/FONT]
[FONT="]Application.CutCopyMode = False[/FONT]
[FONT="]Application.CutCopyMode = False[/FONT]
[FONT="]Range("A1:B24112").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:= _[/FONT]
[FONT="]Range("c1").End(xlDown, CopyToRange:=Range("D1"), Unique:=False)[/FONT]
[FONT="]The range cell vba code works; provides the appropriate output. How can I define that criteria selection in C1 to to be dynamic[/FONT]
[FONT="]In case someone doesn't know what action i'm talking about, Data Tab, sort & filter group, advanced filter brings up this box and the" criteria range" box is the issue.[/FONT]
[FONT="]https://imgur.com/a/lPr4Sos[/FONT]