Help with AdvancedFilter method

S

Sumanth Suri

I am debugging someone elses code and am having a hard time
understanding what AdvancedFilter does. I have read the help for
Visual Basic but all it tells me is how to call the method.
expression.AdvancedFilter(Action, CriteriaRange, CopyToRange, Unique)

What do the three different filter options,
xlFilterCopy,xlFilterAction,xlFilterInPlace do?

What is the CriteriaRange supposed to do?

What is the CopyToRange supposed to do?

What happens if i choose Unique := True or Unique:=False?


I'm a newbie to VBA so i'd appreciate all the help you could give me.

TIA
 
S

Steve Garman

Sumanth said:
I am debugging someone elses code and am having a hard time
understanding what AdvancedFilter does. I have read the help for
Visual Basic but all it tells me is how to call the method.
expression.AdvancedFilter(Action, CriteriaRange, CopyToRange, Unique)

The VBA help seems to assume you have recorded a macro using
"Data | Filter | Advanced filter"

The VBA help makes a lot more sense if you read it in conjunction with
the normal Excel help (search for "Advanced filter")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top