How to Login into Website Automatically Using VBA

Dinesh Kumar Takyar
Dinesh Kumar Takyar
227.9 هزار بار بازدید - 11 سال پیش - Alex wants to automate the
Alex wants to automate the process of logging into a website automatically using Excel VBA. He has the username and password for the website.
Our video demonstrates how you can login automatically into a website like Gmail using Excel VBA:
1. Go to the Gmail website
2. View its source code to find out the labels used for the username and password
3. Start the Visual Basic Editor in MS Excel
4. Activate the following two items by clicking on Tools and then 'References...':
•Microsoft Internet Controls
•Microsoft HTML Object Liabrary
5. Next define two public variables
6. Now start writing the macro
7. Using a looping process access the username and password text-boxes automatically for entry of the relevant data
8. Then identify the 'submit' button, click on it and exit the for loop
9. To avoid error messages popping up write a few lines of code to ignore the errors
You'll notice that the VBA code works well.
You can access the VBA code here:
https://www.exceltrainingvideos.com/h...

For more knowledge read the book Excel 2016 Power Programming with VBA: http://amzn.to/2kDP35V
If you are from India you can get this book here: http://amzn.to/2jzJGqU
11 سال پیش در تاریخ 1392/04/12 منتشر شده است.
227,961 بـار بازدید شده
... بیشتر