I am using :
While ie.busy
DoEvents
Wend
' Some Code
To add a pause in my code, while internet explorer refreshes. But this doesnt seem to be working well. The 'Some code part is getting executed pre-maturely and throwing an error.
I have tried using other methods as well. for e.g.
Errorhandler:
While ie.busy
DoEvents
Wend
On Error Goto Errorhandler
'Some Code
But even this isnt working and sometimes the code is esecuted pre maturely.
Please suggest an infallible alternative to ie.busy
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…