I am trying to automate Internet Explorer using vba.
1. I connect to www.google.com (this works fine)
... commands :
Set IE = CreateObject("InternetExplorer.Application")
IE.Navigate ("http://www.google.com")
2. I try to select the google search box and to type in "Searchstring" (this does not work)
... command:
IE.Document.getElementById("lst-ib").Value = "Searchstring"
... For some reason the command "getElementById" does not work ... neither on google nor on any other website I tried ... but the command is correct ... I copied it directly from a youtube video ....
What is going on here? Help would be much appreciated!
Bookmarks