Date ranges and advanced filter

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to create the vb code for an advanced filter type operation whereby I
filter between two dates. For example I want to filter for all birthdays
between 1/1/2004 and 5/1/2004.

I can't seem to get it to work. I understand the concept of the advanced
filter but no the logic for the whole date range thing

Thanks
j
 
Thanks for the tip on the easyfilter. The only problem is I cannot be sure
that the other members of the management team will have the add-in installed
and configured properly.

I need to be able to select by way of filtering with the advanced filter for
all birthdays between 1/1/2004 and 5/1/2004.

rt
 
Hi sr


When you do this you will get something like this

Selection.AutoFilter
Selection.AutoFilter Field:=1, Criteria1:=">=1/1/2004", Operator:=xlAnd, _
Criteria2:="<=1/5/2004"
 

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

Back
Top