This works for me.

VB Code:
  1. Dim PageComplete As Boolean
  2.  
  3. Private Sub cmdLogin_Click()
  4. 'wb1 = webbrowser control
  5. wb1.Document.All("email").Value = "[email protected]" 'email address
  6. wb1.Document.All("password").Value = "YourPassword" 'password
  7. wb1.Document.Forms("sign-in").submit 'login
  8. End Sub
  9.  
  10. Private Sub Form_Load()
  11. 'wb1 = webbrowser control
  12. wb1.Navigate ("https://www.amazon.com/gp/flex/sign-in/select.html/102-2175624-5181701?ie=UTF8&protocol=https")
  13.  
  14. Do Until PageComplete = True
  15.     DoEvents
  16. Loop
  17.  
  18. End Sub
  19.  
  20. Private Sub wb1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
  21.  
  22.     If pDisp = wb1 Then
  23.     PageComplete = True
  24.     End If
  25.    
  26. End Sub