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