title: Internet Explorer child window in VBA
body: <p>I have  a VBA code that clicks a link on a IE page and a new window opens. How can I get the elements of that child window? </p>
  
  <p>I tried with Shell.application. Are there any other methods?</p>
  
  <pre><code>Set objShell = CreateObject("shell.application")
  IEcount= objShell.Windows.Count
   For x = 0 To iecount
      On Error Resume Next
      Debug.Print x, objShell.Windows(x).document.Location
   Next x
  </code></pre>
  
  <p>I got the window number and its URL but can't access the elements on the page.</p>