Hi,
Im using this code below but im stuck in the loop until i press ESC. Can someone help me write into this code that it stops when ESC is pressed
Sub rrrr()
Do
button24hr
Application.Wait Now + TimeSerial(0, 0, 5)
BUTTONNOW
Application.Wait Now + TimeSerial(0, 0, 5)
ActiveWorkbook.refreshall
Application.Wait Now + TimeSerial(0, 0, 10)
Loop
End Sub
Thanks.....VBA is very new to me
Im using this code below but im stuck in the loop until i press ESC. Can someone help me write into this code that it stops when ESC is pressed
Sub rrrr()
Do
button24hr
Application.Wait Now + TimeSerial(0, 0, 5)
BUTTONNOW
Application.Wait Now + TimeSerial(0, 0, 5)
ActiveWorkbook.refreshall
Application.Wait Now + TimeSerial(0, 0, 10)
Loop
End Sub
Thanks.....VBA is very new to me