What do you mean by pauses? And what are you trying to acheive? Is the program running slow , losing connection etc
I guess your best way is using Application.Ontime so you'd avoid any situations where BA had stopped updating the sheet and therefore any worksheet changes/calcs had stopped. Try messing around with this in a module or call it upon openng the worksheet, basically it'll just call itself and look every 15 seconds to check the value in E2 against the current time. Change that 00:00:15 to whatever you want , I didn't set it to 00:05:00 as it could potentially let thru a 00:09:59 delay
- Code: Select all
Sub Check_delay()
If Time() - TimeValue("00:05:00") > Range("E2").Value Then
MsgBox "Over 300 seconds"
End If
Application.OnTime Now + TimeValue("00:00:15"), "Check_delay"
End Sub