Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to filter a column of data by a date range or month and allow the
user to enter a beginning and end date (or a month number). U using the record macro button I have created the following macro. Sub OPI_FilterbyTargetDate() ' ' OPI_FilterbyTargetDate Macro ' Macro recorded 05/04/2007 by Dylan D Selection.AutoFilter Field:=22, Criteria1:="=30/04/2007", Operator:=xlAnd End Sub I want to bring up the custom filter dialog box to allow the user to enter a date range. How do I remove the text "Criteria1:="=30/04/2007"" and allow the user to enter their own date range e.g., greater than 01-01-04 and less than 30-01-04. Is there an easier way which will allow the users to enter the month number? D Dawson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
DateRange Lookup no exact match, can't use lesser | Excel Worksheet Functions | |||
Auto filter custom filter | Excel Worksheet Functions | |||
Filter out unique additions month to month | Excel Discussion (Misc queries) | |||
check if a a date is in a specified daterange | Excel Worksheet Functions | |||
Filter Month then name | Excel Programming |