Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Won't accept range name
I'm trying to apply an advanced filter to a named range called
"FilterRange" on the source worksheet (RecSht). RecSht.Select Range("a1").Select 'Selection.CurrentRegion.Select Set FilterRange = Selection.CurrentRegion CtyExtr.Select RecSht.Range(FilterRange).AdvancedFilter Action:= _ xlFilterCopy, CriteriaRange:=RecSht.Range("aa1:aa2"), _ CopyToRange:=Range("A5"), Unique:=False I tried using a named range, but it seems that macros don't recognize a named range, at least I can't get it to. So I created a variable to represent the current region from cell A1, called FilterRange. The macro doesn't like that either! No matter what different variations of syntax I use, the macro won't accept it. Right now I'm getting the "Application defined or object defined error". FilterRange is dimmed as an object. Any ideas? Thanks for the help! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Accept or Reject a value | Excel Worksheet Functions | |||
Track/Accept Changes | Excel Worksheet Functions | |||
license box accept | Excel Discussion (Misc queries) | |||
How do i get pocket Excel to accept the normal range of formulae? | Excel Discussion (Misc queries) | |||
Won't accept sheet name | Excel Programming |