rakupareek
New Member
- Joined
- Dec 29, 2023
- Messages
- 38
- Office Version
- 2016
- Platform
- Windows
Enter login and password on a web page from excel
Here is a way to do it using the sendkeys.
sub PageWeb ()
Dim IE As Object
Set IE = CreateObject ("internetexplorer.application")
IE.Navigate ("http://www.zaza.com/")
IE.Visible = True: IE.Top = 0: IE. Left = 0
IE.Width = GetSystemMetrics32 (0)
IE.Height = GetSystemMetrics32 (1)
Application.Wait Now +
5/3600/24 SendKeys ("loginZaza")
SendKeys "{TAB}"
SendKeys ("passwordzaza ~")
Application. Wait Now + 5/3600/24
Set IE = Nothing
Enter login and password on a web page from excel
08-10-2022, 09:05 AM#5
mogul
Forum ContributorJoin Date02-25-2022LocationDallas, TexasMS-Off VerOffice 365Posts174
Re: Accessing password protected webpage in Google Chrome via VBA
There is no standard way to login. You'll need to use Chrome's Development Tools to examine webpage and see how it is constructed. You can use Selenium to login. Selenium is a standard way to interact with webpages. There is a VBA COM Selenium addin you use called SeleniumBasic. You'll need to update Chromedriver for your version of Chrome. You need to have a basic understanding of HTML and CSS. Below is an example:Attached Files
SeleniumLoginExample.xlsm (17.0 KB, 11 views) Download