View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
...Patrick[_3_] ...Patrick[_3_] is offline
external usenet poster
 
Posts: 7
Default Problem in using Advanced Filter

Go to CriteriaRange:=Sheets("Sheet3").Range("A6:B8"),

with F5 and look if this area is not changed by A6:B9 ???



"Shilps" a écrit dans le message de
...
Hi,
I am trying to use Advanced Filter. I have this code

Range("A5:J500").AdvancedFilter Action:=xlFilterCopy,
CriteriaRange:=Sheets( _
"Sheet3").Range("A6:B8"), CopyToRange:=Range("A136"),

Unique:=False
Now the problem with the macro is that even when criteria is changing in
Range "A6:B8", it is always giving the same result that it gave when it

was
run for the first time.

What is the reason for this error? Please help.
TIA
Shilps