View Single Post
  #1   Report Post  
Michael Link
 
Posts: n/a
Default

I'll give it a shot! Unfortunately I need to go to a meeting, so it's =
going to be=20
a while before I can test this out, but at least I've got something to =
try when=20
I come back.
-----Original Message-----
There are probably a number of ways to skin this cat: one of them is to
use the Timer function, which returns the number of seconds elapsed
since midnight. In your case 5pm is 17 hours after midnight, which
equates to 17*60*60 or 61200 seconds. You could replace your code
If Now Mod 1 17 / 24 Then

.... with this:
If Timer =3D 61200 Then

This method will save you a lot of conversion of time strings to
numeric, etc.

Dave O

.