• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

How to automatically enter the username and password on a specific web page|VBA & Macros|Excel Forum|My Online Training Hub

You are here: Home / How to automatically enter the username and password on a specific web page|VBA & Macros|Excel Forum|My Online Training Hub

vba course banner

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumVBA & MacrosHow to automatically enter the user…
sp_PrintTopic sp_TopicIcon
How to automatically enter the username and password on a specific web page
Avatar
A.Maurizio
Member
Members
Level 0
Forum Posts: 202
Member Since:
June 26, 2016
sp_UserOfflineSmall Offline
1
February 1, 2019 - 8:06 pm
sp_Permalink sp_Print

Hello everyone, my name is Maurizio and my problem is this:
In the Cell (A2: C2) I enter the Link -
The username - and the password of my customers.
Now the problem is this: When I press a key inserted in the excel sheet; The procedure opens to me the page I wish
However, there is no way to make the username in an automatic way, let alone the password that at this moment I am forced to put it by hand.
How can I solve it?
This is the link to download the test project: https://app.box.com/s/rp3kie1d.....zcqwjt1vnm
Thanks to everyone who can help me with this.

Avatar
YasserKhalil
Member
Members
Level 0
Forum Posts: 13
Member Since:
June 30, 2016
sp_UserOfflineSmall Offline
2
February 2, 2019 - 4:59 pm
sp_Permalink sp_Print sp_EditHistory

Dim e
For Each e In IE.Document.getElementsByClassName("uikit-text-field ng-scope")
If InStr(e.innerText, "Email") > 0 Then
e.getElementsByTagName("input")(0).Value = Sheet1.Range("B2").Value
ElseIf InStr(e.innerText, "Password") > 0 Then
e.getElementsByTagName("input")(0).Value = Sheet1.Range("C2").Value
End If
Next e

For Each e In IE.Document.getElementsByTagName("button")
Debug.Print e.innerText
If e.innerText = "Log in " Then e.Click: Exit For
Next e

Avatar
A.Maurizio
Member
Members
Level 0
Forum Posts: 202
Member Since:
June 26, 2016
sp_UserOfflineSmall Offline
3
February 2, 2019 - 6:51 pm
sp_Permalink sp_Print

Hi YasserKhalil First of all thanks for your interest.
I have tried your listing but what I see is not working.
Perhaps for two reasons
1) because the link to open the Internet page is missing
2) because although connecting it to the previous listing with a (call) does not work anyway
And all this seems strange to me!
Anyway, thank you for your interest
Greetings and Happy Weekends from A.Maurizio

Avatar
YasserKhalil
Member
Members
Level 0
Forum Posts: 13
Member Since:
June 30, 2016
sp_UserOfflineSmall Offline
4
February 3, 2019 - 2:49 pm
sp_Permalink sp_Print

That was part of your code that I modified and that is related to the login code

Just modify the part that is related to the username / password / and login button .. I have tested and worked for me

Avatar
A.Maurizio
Member
Members
Level 0
Forum Posts: 202
Member Since:
June 26, 2016
sp_UserOfflineSmall Offline
5
February 6, 2019 - 2:24 am
sp_Permalink sp_Print

Hi YasserKhalil Thank you for your work
However I must tell you that by making a careful reflection of what you reported with respect to my initial project.
I managed to solve all very well, now it works great.
Thanks for your help Greetings from A: Maurizio

Avatar
YasserKhalil
Member
Members
Level 0
Forum Posts: 13
Member Since:
June 30, 2016
sp_UserOfflineSmall Offline
6
February 6, 2019 - 11:02 pm
sp_Permalink sp_Print

You're welcome. Glad I can offer little help

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Magnolia Stellata
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 216
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Melanie Ford
Isaac Felbah
Adele Glover
Hitesh Asrani
Rohan Abraham
Anthony van Riessen
Erlinda Eloriaga
Abisola Ogundele
MARTYN STERRY
Rahim Lakhani
Forum Stats:
Groups: 3
Forums: 24
Topics: 6356
Posts: 27793

 

Member Stats:
Guest Posters: 49
Members: 32324
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.