title: vba wait till input captcha submit form
body: <p>I am new to VBA.
  I am creating vba for login to website and get information, but when i tries to login it ask for captcha . I need a code to wait till captcha is inputed and form submitted. please help me on this.</p>
  
  <pre><code>Sub iepart2()
      Dim ie As Object
      Set ie = CreateObject("internetexplorer.application")
  
      With ie
          .Visible = True
          .navigate "http://adb.in/ser/"
  
          Do While .busy
              DoEvents
          Loop
  
          Do While .readystate &lt;&gt; 4
              DoEvents
          Loop
          Set txtUname = .document.getelementbyid("txtUname")
          txtUname.Value = "Amarindaz"
          Set txtEmail = .document.getelementbyid("txtEmail")
          txtEmail.Value = "Amarindaz@gmail.com"
          Application.Wait Now + TimeValue("00:00:15")
          .Quit
      End With
  End Sub
  </code></pre>