Macro to run external application and login into it.

J

Jitendra Kumar

Dear Experts,

I need your help.

I have an application called Agent.exe which i use to import data from
finger print terminals. When i run the application, it shows a dialog box to
enter the user name and password. after i enter the correct user name and
password,the application runs and starts fetching the log from the terminals
which is then stored into a MDB file.

I have created a macro which connects to the MDB file, imports the data and
then export s it to CSV but each time i have to do it, i have to open the
Agent.exe application so that the MDB gets updated with the latest logs.
Therefore I need an excel macro which can run Agent.exe installed at
c:\program files\Agent\Agent.exe and login into it with username = "Admin"
and Password = "Password"

Thanks in advance,
 
J

Jim Thomlinson

You can use the Shell command to launch the applicaiton but to log in is a
different matter.

Shell ("C:\program files\Agent\Agent.exe")

You can use send keys to log in but that is hit and miss. I am not familiar
with Agent but is you do some research on that specific program you may find
that there is a way to span and log into the application via an API call or
such.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top