I want to access a website using VBA codes by entering auto login credentials after that i want to go particular page, Please help me
anku kuma
New Member
Members
Forum Posts: 1
Member Since:
August 8, 2019
August 8, 2019
Offline
Dim HTMLDoc As HTMLDocument Dim MyBrowser As InternetExplorer Sub Instamojo() Dim MyHTML_Element As IHTMLElement Dim MyURL As String On Error GoTo Err_Clear MyURL = "https://www.instamojo.com/accounts/login" Set MyBrowser = New InternetExplorer MyBrowser.Silent = True MyBrowser.navigate MyURL MyBrowser.Visible = True Do Loop Until MyBrowser.readyState = READYSTATE_COMPLETE Set HTMLDoc = MyBrowser.document HTMLDoc.all.id_login_username.Value = "ABC" HTMLDoc.all.Password.Value = "abc@123" For Each MyHTML_Element In HTMLDoc.getElementsByTagName("input") If MyHTML_Element.Type = "submit" Then MyHTML_Element.Click: Exit For Next Err_Clear: If Err <> 0 Then Err.Clear Resume Next End If End Sub End If
Philip Treacy
Admin
Forum Posts: 1617
Member Since:
October 5, 2010
October 5, 2010
Offline
Hi,
I find using SeleniumBasic much easier than using IE. This post walks you through setting it up and how to interact with the website form.
https://www.myonlinetraininghu.....ling-forms
Regards
Phil
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Riny van Eekelen
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Catalin Bombea: 1943
SunnyKow: 1432
Anders Sehlstedt: 937
Purfleet: 415
Hans Hallebeek: 363
Frans Visser: 349
David_Ng: 313
lea cohen: 248
Jessica Stewart: 219
A.Maurizio: 216
Newest Members:
Ponnivalavan Padmanabhan
Solangel Clark
MUHAMMAD FAISAL
Waqas G
Pala Taurai
Jacob Storoz
Riitta Pennanen
Jake Whaley
Debby Hamic
erl eng
Forum Stats:
Groups: 3
Forums: 25
Topics: 7118
Posts: 31218
Member Stats:
Guest Posters: 50
Members: 34585
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —