| |
mega128
Posts: 4
Score: 0
Joined: 12/8/2005
Status: offline
|
Hi all, I am working on a script that should find the latest dates among several date values value1 = CDate(value1) ' for example holds 9/4/2008 2:36:24 PM value2 = CDate(value2) ' this var holds 9/2/2008 10:58:09 AM value3 = CDate(value3) ' all variables below hold separate date values value4 = CDate(value4) value5 = CDate(value5) value6 = CDate(value6) value7 = CDate(value7) value8 = CDate(value8) value9 = CDate(value9) If DateDiff("s", value1, value2,...) Then ??? End If I am confused here, what kind of loop I have to run, that will probably call itself to check all variables and find the latest date? I know it is little tricky but you Gurus out there may already have similar code snippet. Thanks all for reading.
|
|