advanced filter date criteria

T

tina

Hi
My advanced filter works manually but not in macro > It is a criteria issue
as column headings work
I am trying to filter data where ship date is <= todays date +28
Columns("g:k").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Range( _
"m1:m2"), CopyToRange:=Range("p1" _
), Unique:=False
where m1 = ShipDate
and m2 = <=15/03/2010

this works manually but not in macro but if replace m2 with a date it works
therefore how do i write for less than and equal to
Thank you
Tina
 

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