+ Reply to Thread
Results 1 to 13 of 13

Auto Login to Website with Click of a Button Using VBA

  1. #1
    Forum Contributor
    Join Date
    02-12-2018
    Location
    TX
    MS-Off Ver
    MS Office 2019
    Posts
    305

    Auto Login to Website with Click of a Button Using VBA

    Hello. I included a workbook showing what i'm trying to achieve. I have bills, accounts, forums, etc. They all have passwords. It would be nice to go to pay a bill, check my email, nerd out on a forum, and not have to remember one of the thousand Usernames/Passwords that I have. Just have a series of buttons that can be clicked, that link you to the site, and auto fill in your login criteria. I gave hyperlinks to the first three buttons as an example. Now I'm looking to see if any of you super geniuses out there might know of a way to work thru the Login/Password portion of it. I'd greatly appreciate the help. Tks.
    Attached Files Attached Files

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Auto Login to Website with Click of a Button Using VBA

    https://stackoverflow.com/questions/...g-vba/24250879

  3. #3
    Forum Contributor
    Join Date
    02-12-2018
    Location
    TX
    MS-Off Ver
    MS Office 2019
    Posts
    305

    Re: Auto Login to Website with Click of a Button Using VBA

    Thanks. I'll give this a shot and see if I can get it working. Appreciate the help.

  4. #4
    Forum Contributor
    Join Date
    02-12-2018
    Location
    TX
    MS-Off Ver
    MS Office 2019
    Posts
    305

    Re: Auto Login to Website with Click of a Button Using VBA

    I found the code below at the below link but it doesn't seem to be working to log in to Gmail. Any Thoughts?
    https://www.exceltrainingvideos.com/...automatically/
    Please Login or Register  to view this content.

  5. #5
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Auto Login to Website with Click of a Button Using VBA

    .
    Jim

    I've just spent the last few hours searching the Forum, other forums and the internet in general trying to find an answer for you ... without success.

    I attempted 1/2 dozen other examples provided by different authors. The closest I can get is the USERNAME and the screen asking for the password.
    Every example I tried stops at this point.

    I am hoping another volunteer on this FORUM can assist you with this. Will check back to see how it progresses.


  6. #6
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Auto Login to Website with Click of a Button Using VBA

    Maybe look at Autohotkey;

    https://www.autohotkey.com/

  7. #7
    Forum Contributor
    Join Date
    02-12-2018
    Location
    TX
    MS-Off Ver
    MS Office 2019
    Posts
    305

    Re: Auto Login to Website with Click of a Button Using VBA

    Yeah that's the same issue I run into. The video in the link makes it looks so simple and flawless though...so certainly it has to work, because videos and the internet don't lie, right?...sarcasm aside, I appreciate all the time and effort spent. I've been seeing if maybe I can piece a few different codes together but my limited knowledge of VBA is making that a bit of challenge. Checking out "www.autohotkey.com" now. Fingers crossed. Thanks again for the help.

  8. #8
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Auto Login to Website with Click of a Button Using VBA

    .
    You are welcome.

  9. #9
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Auto Login to Website with Click of a Button Using VBA

    Why not just use a password manager? More secure and they can do this out of the box?

  10. #10
    Forum Contributor
    Join Date
    02-12-2018
    Location
    TX
    MS-Off Ver
    MS Office 2019
    Posts
    305

    Re: Auto Login to Website with Click of a Button Using VBA

    I have an home budget spreadsheet that doesn't get used as often as it needs to. I'd like to change that. Suck it up and be a grown up. Part of the reason it's not getting used is because bills come in and you have to go to multiple locations to balance the budget; spreadsheet, password books, the site to pay the bill, etc. The train of thought was to take this ultra fancy sheet that so many hours were spent on, dust it off, add some shiny buttons that you can click and have them auto connect you to the appropriate site. I could even go so far as to add some conditional formatting so that they change colors when a bill is due. The Gmail portion is a necessary component of that. And the whole thing would be password protected. One password, verses several. So, that's the game plan. Trying to work on my grown up skills because they are sub par at the moment.

  11. #11
    Forum Contributor
    Join Date
    02-12-2018
    Location
    TX
    MS-Off Ver
    MS Office 2019
    Posts
    305

    Re: Auto Login to Website with Click of a Button Using VBA

    I GOT IT!!!! I'm not a thousand percent certain what I did but I got it working. Basically, after spending all day researching, I changed all the punctuation (" ' - > etc.). After that, I went into VBA tools and checked off Microsoft Internet Controls, and Microsoft HTML Object Library. Then swapped the username and password and got rid of what I presumed were instructions written in there. And it works. New code posted below. Just replace "[email protected]" with your email address and "password123" with your password and it should work. Good luck. Still in shock over that one.
    Please Login or Register  to view this content.

  12. #12
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Auto Login to Website with Click of a Button Using VBA

    .
    Mr Clayton ... YOU DA MAN !

    I had tried some of what you did but obviously didn't get it right. Great work !!!!

  13. #13
    Forum Contributor
    Join Date
    02-12-2018
    Location
    TX
    MS-Off Ver
    MS Office 2019
    Posts
    305

    Re: Auto Login to Website with Click of a Button Using VBA

    Thanks...gonna chalk that one up dumb luck and perseverance. Of course I’ll lead everyone else to believe that it’s just a result of my excessive super genius abilities. I appreciate all the help. Now I just have to figure out login code for Everything else on my list.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Website Auto Login - Type as Hidden - VBA
    By excely1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-09-2018, 03:02 PM
  2. [SOLVED] website login button click
    By sintek in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 02-06-2018, 06:26 AM
  3. Website Script to click button on Website and export file to directory?
    By stangz71 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2017, 03:55 PM
  4. Creating a Login Button for a Website
    By JesseV92 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-19-2016, 09:07 AM
  5. To Click on log in button of a website
    By sushil10s in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-01-2013, 01:20 AM
  6. Auto Login in web application by single click
    By malviya_anil77 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-10-2012, 08:32 AM
  7. Click button on website from VBA
    By davegugg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-12-2009, 05:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1