Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is the actual code that causes this interesting
problem: If Sheets("Monitor").Cells(6, 5).Value Sheets ("Corrective Actions").Cells(6, 5).Value Then UserForm1.Show Both are date formatted fields as described below, yet it seems to be only looking at the time of day. Thanks for any further insight!! -----Original Message----- Having a problem with a date comparison... c1 = 9/21/04 9:00:00 AM d1 = 9/15/04 11:00:00 AM If date (c1) (d1) then UserForm1.Show This should show the form, but instead because 11 is greater than 9 it does not. And, when you reverse the formula is will show the form. If date (c1) < (d1) then UserForm1.Show Is there a setting or reclaration required? Thanks, Noel . |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Date Comparison | Excel Discussion (Misc queries) | |||
Date Comparison | Excel Worksheet Functions | |||
date comparison | Excel Discussion (Misc queries) | |||
Date comparison | Excel Worksheet Functions | |||
Date Comparison in Code | Excel Programming |