Guest User

Untitled

a guest
Jan 18th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. Sub MyGmail()
  2.  
  3. With CreateObject("InternetExplorer.Application")
  4. .Visible = True
  5. .navigate "https://www.gmail.com"
  6. While .Busy = True Or .readyState < 4: DoEvents: Wend
  7. .document.getElementById("identifierId").Value = "your_email"
  8. .document.getElementById("identifierNext").Click
  9. Application.Wait Now + TimeValue("00:00:03")
  10. .document.getElementsByClassName("whsOnd zHQkBf")(0).Value = "your_password"
  11. .document.getElementById("passwordNext").Click
  12. End With
  13. End Sub
Add Comment
Please, Sign In to add comment