Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
How can I compare the current date to 2 other dates. Example: fDate = Left$(Date$, 2) & Mid$(Date$, 4, 2) & Right$(Date$, 4) I need a MsgBox to open if fDate is equal to or greater(=) than Nov. 1, 2004 AND equal to or less than(=<) Nov. 26, 2004. Thank you for your help, Terri |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Don't use strings.
Dim dt as Date dt = Date ' todays date as an example. if Dt DateSerial(2004,11,1) and Dt < DateSerial(2004,11,26) then End if -- Regards, Tom Ogilvy "Terri" wrote in message ... Hello, How can I compare the current date to 2 other dates. Example: fDate = Left$(Date$, 2) & Mid$(Date$, 4, 2) & Right$(Date$, 4) I need a MsgBox to open if fDate is equal to or greater(=) than Nov. 1, 2004 AND equal to or less than(=<) Nov. 26, 2004. Thank you for your help, Terri |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
MS Query - Filtering all dates greater than the current date | Excel Discussion (Misc queries) | |||
How do I get the most current date from a list of dates? | Excel Discussion (Misc queries) | |||
Compare date against multiple dates | Excel Discussion (Misc queries) | |||
How to make drop-down list of dates start with current date? | Excel Discussion (Misc queries) | |||
Compare Current Date | Excel Programming |