+ Reply to Thread
Results 1 to 3 of 3

Excel VBA to open EXE and auto login

  1. #1
    Registered User
    Join Date
    02-27-2024
    Location
    Johor, Malaysia
    MS-Off Ver
    365
    Posts
    5

    Excel VBA to open EXE and auto login

    Hi, I'm new here

    I want to create excel VBA code to open the .exe file and login into that .exe file.
    Normally the exe file like:
    1. Click to open .exe file
    2. Exe file open with login windows (ID & PW)
    3. input the ID & PW and enter the exe

    do anyone can help me to write the VBA code?

  2. #2
    Registered User
    Join Date
    09-18-2023
    Location
    Geogia, USA
    MS-Off Ver
    365
    Posts
    99

    Re: Excel VBA to open EXE and auto login

    You could use Shell function to launch the exe, then SendKeys function to send the keystrokes needed to move to each field, to fill in the fields and finally press enter on the login button.

    edit: fix typo

  3. #3
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Excel VBA to open EXE and auto login

    Assuming the ID/Password aren't a UAC prompt, possibly the most reliable option would be find out if the exe has any commandline switches which allow you to enter the credentials.

+ 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. [SOLVED] Excel Login Form that records date and time of login
    By fastcar in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-30-2023, 10:36 PM
  2. Replies: 1
    Last Post: 06-01-2021, 05:41 AM
  3. Link in Excel cannot open a webpage because of a login page
    By matejstudeny in forum Excel General
    Replies: 1
    Last Post: 12-09-2020, 08:05 PM
  4. [SOLVED] Macro: Auto Open/Login to Websites
    By Jim Clayton in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-14-2018, 12:42 AM
  5. Replies: 0
    Last Post: 10-30-2015, 12:23 PM
  6. Any excel formula to get first login and last login data
    By sandesh joshi in forum Excel General
    Replies: 5
    Last Post: 07-11-2014, 11:18 AM
  7. Create a auto login to yahoo email via excel
    By SpoonTeng in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-27-2014, 12:54 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