title: VBA: Internet Explorer object does not show correct LocationName
body: <p>I am working on a simple Word macro below that opens an IE page and displays its location.
  The macro works correctly for Internet Web pages. However, if the Web page is a local file, the shown location is always about:blank.</p>
  
  <p>Why this happens and how can I get the real location?
  I tried the trick that enumerates all open windows and it works.</p>
  
  <p>However I am wondering why the direct method below does not work for local pages.</p>
  
  <p>OS: Windows 7 + IE8</p>
  
  <pre><code>Option Explicit
  
  Dim oIE
  
  Sub Macro()
  
      Set oIE = CreateObject("InternetExplorer.Application")
  
      oIE.navigate "about:blank"
  
      oIE.Top = 0
      oIE.Left = 0
      oIE.Width = 500
      oIE.Height = 500
  
      oIE.navigate "C:\test\test.htm"
  
      oIE.Visible = 2
  
      Do While (oIE.Busy)
          DoEvents
      Loop
  
      MsgBox oIE.LocationName
  
      Set oIE = Nothing
  
  End Sub
  </code></pre>