Click here to Skip to main content
16,021,041 members
Please Sign up or sign in to vote.
4.67/5 (3 votes)
See more:
Hi Friends,

I am facing some problem in VBA code with Web automation...

What i am trying to do is I have a Web site ( developed by some other party..code can't be changed). We are trying to automate the process of web site.
There are few fields like data entry on web form. We are trying to fill this fields from excel VBA code. What we are doing just getting data from Excel and putting it on web site filed automatic and clicking the submit button on Web form.

We are able to get data from data from excel and able to fill the data on web form and click on submit button. But after clicking the submit button the data get submitted and one Jaavscript alert get displayed saying " Data added successfully".

Now i m not able to click on that alert box automatically from VBA code. VBA code freezes the application after getting Alert msg that cozes my normal flow of application.


any body tried this with VBA to click on javascript "Ok" alert.
Posted
Comments
walterhevedeich 29-Apr-11 1:33am    
seems like a hard task for me. voted 5 for the question. Lets leave it up to the VBA guys in CP. :)

1 solution

You can "click" this messagebox from web site using SendKey() function, but i'm affraid you can send "Enter" to soon. You need to check if message is showing. Use FindWindow() API function to find this messagebox.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900