Aiysha
asked on
Time loop.
I want to create a do untill loop in vba, which will take hours as input and continue with steps in the loop till the until criteria is met. Below the code I have so far
dim inout
Dim timenow
inout = 24 'time in hours.
timenow = Now()
Do Until i = timenow + inout
Loop
It does not work..someone has better idea??
Thank you in advance.
dim inout
Dim timenow
inout = 24 'time in hours.
timenow = Now()
Do Until i = timenow + inout
Loop
It does not work..someone has better idea??
Thank you in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanks :)
Yes.. that should have been While .... Wend
Yes.. that should have been While .... Wend
ASKER
Thank you for helping me with the code. Do while worked better than do until..