title: ie.busy not working well [VBA]
body: <p>I am using :</p>
  
  <pre><code>While ie.busy
  DoEvents
  Wend
  
  ' Some Code
  </code></pre>
  
  <p>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.</p>
  
  <p>I have tried using other methods as well. for e.g.</p>
  
  <pre><code>Errorhandler:
  
  While ie.busy
  DoEvents
  Wend
  
  On Error Goto Errorhandler
  'Some Code
  </code></pre>
  
  <p>But even this isnt working and sometimes the code is esecuted pre maturely.</p>
  
  <p>Please suggest an infallible alternative to ie.busy</p>