title: VBA IE Automation
body: <p>I am trying to automate a process where I must query a website: <a href="http://rgl.faa.gov/Regulatory_and_Guidance_Library/rgAD.nsf/MainFrame?OpenFrameset" rel="nofollow">http://rgl.faa.gov/Regulatory_and_Guidance_Library/rgAD.nsf/MainFrame?OpenFrameset</a></p>
  
  <p>There is a input text field <code>&lt;input name="query size="20"/&gt;"</code> that I want to populate but I am struggling to do so. Currently I am testing my code to see if I can even reference the tag.</p>
  
  <pre><code>Sub fill()
  Dim IE As Object
  Set IE = CreateObject("InternetExplorer.Application")
  
  IE.navigate "http://rgl.faa.gov/Regulatory_and_Guidance_Library/rgAD.nsf/MainFrame?OpenFrameset"
  IE.Visible = True
  While IE.busy
  DoEvents
  Wend
  
  For Each it In IE.Document.getElementsByTagName("input")
              If it.Name = "newquery" Then
                  MsgBox ("yup")
              End If
          Next
  End Sub
  </code></pre>
  
  <p>I think my issue is that the input field is in 2 framesets and a frame...</p>
  
  <p>Any ideas if this is even possible to do?</p>