I have created a dynamic list range for my advanced filter. I have created name called "Data". When I try to input the name into the VBA formula I receive an error. The dynamic names work for the criteria and the output range?
Range("Sheet2!Data").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Range _
("Sheet2!Filter"), CopyToRange:=Range("Sheet2!Location"), Unique:=False
I receive the following run-time error '1004':
Method 'Range' of object'_Global' failed