PDA

View Full Version : Can vba take control of the web site by hitting tab key?



pedie
10-18-2010, 02:19 PM
Can vba open a webpage then click on center of the page then
by hitting tab key twice and set focus on Textbox like and then enter a word "password"and click on submit?

In this intranet site we cannot ctrl f to find a word or anything...there is just one textbox like field to enter a word to log on...
So please helpme in opening this site and log on into it....

Thank you for helping!
Pedie

Kenneth Hobs
10-18-2010, 04:15 PM
There are 2 ways to do it. (1) By IE object methods and (2) SendKeys. To do (1), post your Source Code from the website. For (2), you will need to disable UAC if you have Vista+.

pedie
10-18-2010, 08:03 PM
I can of course post the source code but right now i am not @ work so I will not be able to do it right now. Pls suggest me a code that can make this happen.

Open the site >> click anywhere on the site once then >> tab 2wice and hit enter aftering password:

That is all i need if you would please help me to this much then I will really appriciate.

Thank again so much for helping.

I found so many code in google search but non of them is helpfull...please advice me more on how to use the 2nd method:

Thanks again!