SQUIDD
Well-known Member
- Joined
- Jan 2, 2009
- Messages
- 2,104
- Office Version
- 2019
- 2016
- Platform
- Windows
Hi All
I seem to have allot of trouble with error handling.
Could someone please help/explain
lets say i have a loop that returns an error with that loop, but if you keep waiting it isnt an error any more.
something like the below.
But the below example will only go to the errh: once, why does it not continue to loop?
Thanks dave
I seem to have allot of trouble with error handling.
Could someone please help/explain
lets say i have a loop that returns an error with that loop, but if you keep waiting it isnt an error any more.
something like the below.
But the below example will only go to the errh: once, why does it not continue to loop?
VBA Code:
retry:
for a = 1 to 10
on error goto errh
'get info sometimes throws an error but if you wait a second or 2 it will eventually be ok
next a
errh:
application.wait(now + timevalue("00:00:02"))
goto retry
Thanks dave