Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 139
Default advanced filter date criteria

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 139
Default advanced filter date criteria

Hi
I worked out date has to be mm/dd/yy format
Sorry if wasted anybodies time
Tina

"tina" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Criteria for Advanced Filter HELP knowshowrosegrows New Users to Excel 5 February 21st 09 12:32 PM
Advanced filter criteria Marvin Buzz Excel Discussion (Misc queries) 2 May 23rd 08 02:37 PM
Advanced filter criteria for < Dianne Butterworth Excel Programming 1 August 22nd 07 02:30 AM
Advanced filter criteria Phil C Excel Discussion (Misc queries) 4 April 10th 07 07:48 AM
"Criteria Range" in the "Data/Filter/Advanced Filter" to select Du TC Excel Worksheet Functions 1 May 12th 05 02:06 AM


All times are GMT +1. The time now is 07:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"