title: Use VBA/VBSCRIPT to access Textbox embeded in the form tags of Internet Explorer Object
body: <p>I am using VBA to access a username/password box on a webpage that has a form </p>
  
  <pre><code> &lt;form name="form1" method="post" action...
  </code></pre>
  
  <p>I have successfully used the code below to login to several sites that do not have the controls placed in the form tag. However, The following code does not work on this particular webpage, since i am assuming it is because the username/password boxes are in the form tags.</p>
  
  <pre><code>   Set IE = CreateObject("internetexplorer.application")
     IE.Visible = True
     IE.Navigate "websiteurl"
  
     Do While IE.ReadyState &lt;&gt; 4 Or IE.Busy = True
         DoEvents
     Loop
  
     IE.Document.getElementById("username").Value = "username"
     IE.Document.getElementById("pwd").Value = "password"
     IE.Document.all("ButSubmit").Click
  </code></pre>
  
  <p>I get an error "AUTOMATION ERROR. The interface is unknown". I have not been able to find much info on this type of problem. Would appreciate any help that can be given on this one</p>