Btibert3
01-22-2009, 12:51 PM
Hi Everyone,
After countless hours of trying to figure out how to do the basic automation of IE, I am stuck at a point in my code that I thought was straight forward.
I have scoured the internet, and the general conclusion is that I should be able to send the click command to request the page.
My code is below:
oIE.Document.all("ctl00$ContentPlaceHolder1$txtGamertag").Value = "username"
oIE.Document.all("ctl00$ContentPlaceHolder1$btnSearch").Click
The click doesnt work. If I were not using VBA, I could simply click enter on my keyboard or select the search icon on the page. I am stuck as to why I can not successfully submit the page in VBA.
Here is the snippet of the html that I believe has everything that I need. The thing that is throwing me off is that it appears there is a javascript that fires on keypress, but I dont know if that matters or not for my problem.
Any insight or direction you can give me will be much appreciated. Unless all else fails (which it probably will at the pace I am going with this) I should be all set.
Many, many, many thanks in advance,
Brock
P.S. Because I am new to this forum, apparently I cannot place links. Therefore, the site I am referring to is the Gears of War 2 webstats page for all of the video game players out there.
After countless hours of trying to figure out how to do the basic automation of IE, I am stuck at a point in my code that I thought was straight forward.
I have scoured the internet, and the general conclusion is that I should be able to send the click command to request the page.
My code is below:
oIE.Document.all("ctl00$ContentPlaceHolder1$txtGamertag").Value = "username"
oIE.Document.all("ctl00$ContentPlaceHolder1$btnSearch").Click
The click doesnt work. If I were not using VBA, I could simply click enter on my keyboard or select the search icon on the page. I am stuck as to why I can not successfully submit the page in VBA.
Here is the snippet of the html that I believe has everything that I need. The thing that is throwing me off is that it appears there is a javascript that fires on keypress, but I dont know if that matters or not for my problem.
Any insight or direction you can give me will be much appreciated. Unless all else fails (which it probably will at the pace I am going with this) I should be all set.
Many, many, many thanks in advance,
Brock
P.S. Because I am new to this forum, apparently I cannot place links. Therefore, the site I am referring to is the Gears of War 2 webstats page for all of the video game players out there.