title: VBA: Attempting to access website, but website occasionally fails to load
body: <p>Current code is as follows:</p>
  
  <pre><code>Set IE = CreateObject("InternetExplorer.Application")
  IE.Navigate "https://www.website.com/"
  Application.StatusBar = "https://www.website.com/ is loading. Please wait..."
  Do While IE.Busy
      Application.Wait DateAdd("s", 1, Now)
      Loop
  Application.StatusBar = "Search form submission. Please wait..."
  </code></pre>
  
  <p>The issue I am experiencing is that "<a href="https://www.website.com/" rel="nofollow">https://www.website.com/</a>" fails to load from time to time (I believe this is due to me repeatedly accessing it). The result is that the code never moves beyond this loop:</p>
  
  <pre><code>Do While IE.Busy
      Application.Wait DateAdd("s", 1, Now)
      Loop
  </code></pre>
  
  <p>A logical solution, in my opinion, is to kill IE and restart the whole process after a certain time limit (30 seconds?) has been reached. Please advise as to how to code this solution, and/or, how to code a more effective solution alltogether. Thank you kindly! And I'm using IE10, if that matters at all.</p>
  
  <p>Also, here is a link I found that has somewhat related and relevant information:
  <a href="http://www.ozgrid.com/forum/showthread.php?t=161094" rel="nofollow">http://www.ozgrid.com/forum/showthread.php?t=161094</a></p>