View Single Post
 
Old 06-10-2012, 10:17 AM
tinfanide tinfanide is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: Aug 2011
Posts: 312
tinfanide is on a distinguished road
Default

app2.xlsm

The resolution, to my amazement, is desperate.
By adding
Code:
Application.Wait DateAdd("s", 1, Now)
before each time
Code:
oIE.Navigate "URL"
The error does not emerge.

Very long time age I discovered the "trick" of it, but
I hate using it as I dunno... anyway just thought it was not a proper way to tackle run-time errors. Whenever I couldn't explain why the error exists and find the right way to resolve it, just using a hard way... is not going to help me improve my scripting knowledge a lot.
Anyway, don't know what I'm talking about. If anyone knows why the run-time error exists, please do teach me a thing. Thank you in advance.

P.S.:
Indeed, the error normally emerges 3 - 4 times out of 10 trials.
Reply With Quote