Hi,
Im trying to write a simple procedure that i ac kick off of an evening and the process will start at a designated time.
Ive put in a simple loop that will run untill a certain time and then show a message. When i have it working I will incorporate it into the full procedure.
unfortunatly the loop seems to stick.
the code im usuing is :
Function ChkFirstWhile()
Dim CurrentTime, StartTime
StartTime = "11:45:21"
CurrentTime = Time
Do Until CurrentTime = StartTime
Loop
MsgBox "The time is " & Time
End Function
Can anyone show me where Im going wrong.
thanks
Im trying to write a simple procedure that i ac kick off of an evening and the process will start at a designated time.
Ive put in a simple loop that will run untill a certain time and then show a message. When i have it working I will incorporate it into the full procedure.
unfortunatly the loop seems to stick.
the code im usuing is :
Function ChkFirstWhile()
Dim CurrentTime, StartTime
StartTime = "11:45:21"
CurrentTime = Time
Do Until CurrentTime = StartTime
Loop
MsgBox "The time is " & Time
End Function
Can anyone show me where Im going wrong.
thanks