title: Internet Explorer 11 automation error
body: <p>I am having a problem when using vba from excel to navigate on multiple pages. I have used the code on ie8 and ie9 without any problems, but in ie11, when i navigate to another url the ie.locationurl and ie.document still refer to the previous url. I noticed this only happens with php websites. I am interested in finding a way to solve this. Any help appreciated.</p>
  
  <p><em>Here is some example code with a php website:</em></p>
  
  <pre><code>Sub test()
  Dim ie As SHDocVw.InternetExplorer
  Set ie = New SHDocVw.InternetExplorer
  
  With ie
  .navigate "https://www.facebook.com/" 'php website
  .Visible = True
  Do While ie.Busy
  Loop
  Do While ie.readyState &lt;&gt; 4
  Loop
  
  .navigate "https://en.wikipedia.org/wiki/Main_Page"
  .Visible = True
  
  Debug.Print ie.locationurl
  
  Do While ie.Busy
  Loop
  Do While ie.readyState &lt;&gt; 4
  Loop
  End With
  End Sub
  </code></pre>
  
  <p><em>And here is one that works but doesn't have a php website:</em></p>
  
  <pre><code>Sub test2()
  Dim ie As SHDocVw.InternetExplorer
  Set ie = New SHDocVw.InternetExplorer
  
  With ie
  .navigate "http://www.break.com/" 'non php website
  .Visible = True
  Do While ie.Busy
  Loop
  Do While ie.readyState &lt;&gt; 4
  Loop
  
  .navigate "https://en.wikipedia.org/wiki/Main_Page"
  .Visible = True
  
  Debug.Print ie.locationurl
  
  Do While ie.Busy
  Loop
  Do While ie.readyState &lt;&gt; 4
  Loop
  End With
  End Sub
  </code></pre>