Link to home
Start Free TrialLog in
Avatar of MediTrans

asked on

How do I use sendkeys to auto enter data to an ASP

I am launching a URL from Access "shell" . Once the website loads I am trying to use "sendkeys" to enter my user name in the "userid" field and my password in the "userpw" field. So far I am able to launch the website and the cursor is in the correction position. The problem is that sendkeys does not execute and no data is entered. I am not sure what I am doing wrong. I am using the following code;

Sub StartWebsite_Click ()
X = Shell("iexplore.exe", 1)    ' Shell Internet Explorer.
SendKeys "ZZZ78397Z"
SendKeys "{Enter}"

End Sub
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial