Hi All,
I've been running around in circles trying to get this to do what I want and it seems to ignore my request, so I figure I must be doing it wrong, so once again, I am asking for help.
What I am trying to do is execute a function M-F every 2 hours between 4am and 6pm. The 2 hour part was easy, I just created a form with a timer, but the other part isn't working so well, here is my latest attempt, can one of you fine gentlemen please fix it for me? TIA
I've been running around in circles trying to get this to do what I want and it seems to ignore my request, so I figure I must be doing it wrong, so once again, I am asking for help.
What I am trying to do is execute a function M-F every 2 hours between 4am and 6pm. The 2 hour part was easy, I just created a form with a timer, but the other part isn't working so well, here is my latest attempt, can one of you fine gentlemen please fix it for me? TIA
Code:
StrTime = Time()
If Not ((Weekday(Now()) = vbSaturday) Or (Weekday(Now()) = vbSunday)) And (StrTime > "4:00" Or StrTime < "18:00") Then