LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Setting a criteria in an AdvancedFilter macro

I recorded a macro that gave me this code

Sheets("Sheet1").Range("D5:X306").AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Sheets("Sheet1").Range("L5:L306"),
CopyToRange:=Range("D5") _
, Unique:=False

the criteria I would like to set is based on colomn 9 (which equates to
L5:L306 and it will probably vary with each run) of the affected range it
is a date field, I would like to restrict the the dates to a set a range
such =01/01/2006 and <= 06/30/2006.

How do I set up the criteria range?

What would I need to do to make this work?

Any help would be greatly appreciated
Thanks

--
Wendell A. Clark, BS
-------------------------------------

CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may
contain confidential and privileged information for the use of the
designated recipients named above. If you are not the intended recipient,
please notify us by reply e-mail. You are hereby notified that you have
received this communication in error and that any review, disclosure,
dissemination, distribution or copying of it or its contents is prohibited.
If you have received this communication in error, please destroy all copies
of this communication and any attachments. Contact the sender if it
continues.



 
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
Setting the Validation Criteria on the fly PDABACC Excel Discussion (Misc queries) 1 November 10th 07 02:53 PM
Advancedfilter copy in place doesn't use criteria range correctly Josh[_13_] Excel Programming 1 December 9th 05 02:30 PM
Advancedfilter doesn't work when Excel opens, but does when run macro Josh[_13_] Excel Programming 0 December 8th 05 09:52 PM
Sending email via macro- setting the importance setting. Julian Milano[_2_] Excel Programming 1 January 20th 04 10:15 PM
AdvancedFilter Criteria question Neal Steiner Excel Programming 2 September 10th 03 06:53 PM


All times are GMT +1. The time now is 09:06 AM.

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

About Us

"It's about Microsoft Excel"