Help with my first macro please

  • Thread starter Thread starter debbie
  • Start date Start date
D

debbie

I have the following in my first macro:

Selection.AutoFilter Field:=2, Criteria1:=">20-Nov",
Operator:=xlAnd
Range("C11:C214").Select

which works fine. However, what i would like is for the date to change
to today whenever I run it. At the moment I have to update it
manually.

Does anyone know how I can do this?

Many thanks in advance

Debbie
 
This may do it:

Selection.AutoFilter Field:=2, Criteria1:=">" & Int(Now)
 

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