1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
Sub START()
Do While True
If Weekday(Now) = vbMonday Then
Do While True
If Time > TimeValue("06:58:00") Then
Do While True
If Time > TimeValue("07:59:59") Then
If Time < TimeValue("08:01:30") Then
MsgBox ("ITS WORKS")
End If
End If
Application.Wait 60
'Application.Wait Now + TimeValue("00:01:00")
Loop
End If
Application.Wait 3600
'Application.Wait Now + TimeValue("01:00:00")
Loop
End If
Application.Wait 86400
'Application.Wait Now + TimeValue("24:00:00")
Loop
End Sub |