Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Am trying to sort a list that contains a big amount of dates, with help
of two textboxes on a userform. This don't work, but it shows the correct values in the custom dialog from the dropdown box Private Sub CommandButton1_Click() Sheet1.Select Dim FirstDate As Date Dim LastDate As Date FirstDate = TextBox1.Text LastDate = TextBox2.Text Selection.AutoFilter Field:=3, Criteria1:="" & Format(FirstDate, "mm/dd/yyyy"), _ Operator:=xlAnd _ , Criteria2:="<" & Format(LastDate, "mm/dd/yyyy") Unload UserForm1 Grateful for any help *** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
finding a date/time in a list that is closest to an existing date/ | Excel Discussion (Misc queries) | |||
the date format is not working ,sort by date doesn't work. | Excel Discussion (Misc queries) | |||
How do you sort a list of dates into date order | Excel Discussion (Misc queries) | |||
expanding a start date and end date to show all the dates in a list | Excel Programming | |||
In Excel, why sort function fails when applied to a list of date? | Excel Discussion (Misc queries) |