I'd like a macro to be pulled at exactly the start of a new hour between the nightshift hours of 18:00-06:00. I found the following code, but not sure how to make it repeat each hour:
VBA Code:
Sub Timer()
'first call appropriate procedure
Call myProcedure
'next, set new calling time
Application.OnTime TimeValue("18:00:00"), "Timer"
End Sub
Sub myProcedure()
MsgBox "Test Sucessful"
End Sub