View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Dave Peterson[_3_] Dave Peterson[_3_] is offline
external usenet poster
 
Posts: 2,824
Default Advanced Filter & Named Range

Even if you qualified it completely:

thisworkbook.worksheets("full Record").range("pivotData").advancedfilter _
action:=....

(I left thisworkbook off by mistake, sorry.)

PivotData is on worksheet "full record", right?

LS wrote:

Thanks for the suggestion Dave, unfortunately I still get an error
at that point, caused by spaces in the filename.

LS

Dave Peterson wrote in message ...
I think I'd just use:

worksheets("full Record").range("pivotData").advancedfilter _
action:=....

But I'd fully qualify that copytorange, too:

worksheets("full Record").range("pivotData").advancedfilter _
action:=xlFilterCopy, _
CriteriaRange:=Sheets("FULL RECORD").Range("L2:M3"), _
CopyToRange:=worksheets("filtered data").Range("A7:BQ7"), Unique:=False



--

Dave Peterson