View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rishi Dhupar Rishi  Dhupar is offline
external usenet poster
 
Posts: 18
Default Advanced Filter to another sheet

I did a search and couldn't find the answer I am looking for. I
understand the AdvancedFilter can pull data from another sheet, just
not the opposite.

This is for VBA. Code seems to make sense, and is similar to what a
macro recorded. (I recorded a macro of what I wanted to do, and it
worked fine.)

Any idea what is wrong? Keep getting an Extract Range has a missing or
Illegal field Name error

Thanks a lot.

Application.Workbooks("Docs
DB.xls").Sheets("dbData").Range("E2:E188"). _
AdvancedFilter Action:=xlFilterCopy,
CriteriaRange:=Application.Workbooks( _
"Docs DB.xls").Sheets("dbData").Range("E2:E188"),
CopyToRange:=tempApp.Workbooks(1).Sheets(1).Range( "A1"), Unique:=True