Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a text box on a form and i'd like to be able to use it to enter
a date in the format mm/dd/yy and compare it to cells that have the date format If Not (form1.Date1.Value = "" And form1.Date2.Value = "") Then For Each cell In Range(Cells(2, 1), _ Cells(Worksheets("Data").UsedRange.Rows.Count - 1, 1)) If Not (cell.Value = form1.Date1.Value And _ cell.Value <= form1.Date2.Value) Then cell.EntireRow.Hidden = True End If Next cell End If currently, when excuting this code, even entering the dates in the format mm/dd/yyyy causes all rows to be hidden any help would be great |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using TODAY function to return a date as text | Excel Discussion (Misc queries) | |||
VLOOKUP return text not date | Excel Worksheet Functions | |||
Auto return month as text date | Excel Discussion (Misc queries) | |||
UserForm text box Date formatting | Excel Programming | |||
Userform cannot return any values | Excel Programming |