Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. objIE.document.getElementById("id_here").Value = "Search This Text"
  2.  
  3. Sub InternetAutomation()
  4.  
  5. 'Declaring and Setting Internet Explorer with Early Binding
  6. Dim aExplorer As InternetExplorer
  7. Set aExplorer = New InternetExplorer
  8.  
  9. 'Set basic attributes of Internet Explorer and navigate to first webpage
  10. With aExplorer
  11. .Visible = True
  12. .Navigate "www.google.com"
  13. End With
  14.  
  15. 'Wait while Internet Explorer is busy
  16. Do While aExplorer.Busy
  17. Application.Wait DateAdd("s", 1, Now)
  18. Loop
  19.  
  20. 'Search Parameters
  21. aExplorer.Document.getElementById("1st - ib").Value = "Search This Text"
  22.  
  23. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement