Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hello, Does anyone know how to set up a date in a Macro so that it allows me to put in a date when I run the Macro. When I created the macro I created it with a criteria for a September but at the end of month I will need to capture the data for October and so on. Is there a way to change the dates other than manually going into the macro every month and changing them? Listed below is the structure of the dates using the Macro recorder: Selection.AutoFilter Field:=37, Criteria1:="=9/5/2005", Operator:=xlAnd _ , Criteria2:="<=10/2/2005" How should I change the code so that it look at a new set of dates every month? Any help is appreciated. -- Lizz45ie ------------------------------------------------------------------------ Lizz45ie's Profile: http://www.excelforum.com/member.php...o&userid=23410 View this thread: http://www.excelforum.com/showthread...hreadid=479917 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro filter based on date criteria | Excel Discussion (Misc queries) | |||
Formula in excel using date criteria | Excel Discussion (Misc queries) | |||
Reg autofiltering using macro in excel with out providing criteria | Excel Worksheet Functions | |||
how to use lookup a value by date for criteria in Excel sheet | Excel Worksheet Functions | |||
Excel VBA to search all macro code in Excel module for specific string criteria | Excel Programming |