title: Macro is running, able to log in but it seems to stall on desired form, no error message
body: <p>I'm writing a macro to populate a web form. It is running, it logs in with no problem and goes to the desired page, but at that point, everything stops. The macro continues to run, but the cells are not being populated with information.
  This is the full code:</p>
  
  <pre><code>    Sub FormFill()
  
  Set IE = CreateObject("internetexplorer.application")
  IE.Visible = True
  IE.Navigate "http://app.pestpac.com/lookup/notificationLocations/default.asp"
  
  Do While IE.ReadyState &lt;&gt; 4 Or IE.Busy = True
      DoEvents
  Loop
  
  
  'log in
  If IE.Document.Title = "PestPac - Login" Then
      IE.Document.getElementById("CompanyKey").Value = "x"
      IE.Document.getElementById("Username").Value = "x"
      IE.Document.getElementById("Password").Value = "x"
      IE.Document.all("butLogin").Click
      Do While IE.ReadyState &lt;&gt; 4 Or IE.Busy = True
          DoEvents
      Loop
  End If
  
  For i = 2 To 626
  
      IE.Document.all("butAdd").Click
          If IE.Document.Title = " PestPac - Maintain Notification Locations" Then
              IE.Document.getElementById("Name").Value = Cells(A, i).Value
              IE.Document.getElementById("Address").Value = Cells(B, i).Value
              IE.Document.getElementById("City").Value = Cells(C, i).Value
              IE.Document.getElementById("State").Value = Cells(D, i).Value
              IE.Document.getElementById("Zip").Value = Cells(E, i).Value
              IE.Document.getElementById("Phone").Value = Cells(F, i).Value
              IE.Document.getElementById("Distance").Value = "0.1"
  
              IE.Document.all("butAdd").Click
  
          End If
  
  Exit For
  
  Next i
  
  End Sub
  </code></pre>