Good Morning,
I would like to loop the procedure below for one minute. I have used a Do Until Loop but this is not working.
Please will someone show me where I am going wrong.
Thanks.
Rob.
I would like to loop the procedure below for one minute. I have used a Do Until Loop but this is not working.
Please will someone show me where I am going wrong.
Code:
Public Const cRunForTime = "00:01:00"
Sub Phase1()
Sheets("Data Collection and Compilation").Select
Do Until TimeValue(cRunForTime)
Selection.Offset(-1, 0).Value = Now
Selection.NumberFormat = "0.00%"
Range("h2:h100").Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Selection.Offset(0, 1).Select
Loop
End Sub
Rob.