can I use autofilter with an equation

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

Guest

I am trying to filter dates such that I want all rows where the date is less
than 30 days forward. In other words I'm looking to see only the rows which
are within the next 30 days.

In MS-Project VBA I can insert into the Finish Date field autofilter the
fo0rmula Value:=(Now() - 28) and get my results

Thanks
 
Frank, how do I Enter the constraints such as all dates between 1/1/2004 and
5/1/2004?
 
You can use a Custom AutoFilter. For example:

ActiveSheet.Range("A1").AutoFilter Field:=1, _
Criteria1:=">=" & CLng(Date), Operator:=xlAnd, _
Criteria2:="<=" & CLng(Date + 30)
 

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