title: web login using VBA
body: <p>I'm trying to access my webtext a/c using VBA.
  The first step is trying to get the tag for the username and password input boxes.</p>
  
  <p>I've used inspect elements to determine the tags and I think they are
  "username" and "password".  However, this does not work. Unfortunately, I've no experience of CSS.</p>
  
  <p>Here is my code.</p>
  
  <pre><code>Sub MyLogin()
  
      Set ie = CreateObject("InternetExplorer.Application")
      With ie
          .Visible = True
          .Navigate "http://www.o2online.ie/o2/login/"
          Do Until .ReadyState = 4
              DoEvents
          Loop
          .document.all.Item("username").Value = "MyUsername"
          .document.all.Item("password").Value = "MyPassword"
          .document.forms(1).submit
      End With
  
  End Sub
  </code></pre>
  
  <p>Any help appreciated.</p>
  
  <p>Regards, Rueful</p>