B
Bob Quintal
Good day,
I am trying to code for the following:
If the current time of day is less than 8:30 am and greater
than 5:30 pm, exit sub.
Please help. Thanks
Use the timer function to return the number of seconds since
midnight
dim starttime as single
dim enddtime as single
starttime = 60*60*8.5 ' secs/min * mins/hr * 8 & half hours
endtime = 60*60*17.5
.. If timer >= starttime and timer < enddtime then
exit sub
end if