Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Macro to run external application and login into it.


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,
--
Best Regards,
Jitendra Kumar
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Macro to run external application and login into it.


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.
--
HTH...

Jim Thomlinson


"Jitendra Kumar" wrote:

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,
--
Best Regards,
Jitendra Kumar

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
External data connection needs separate login for each query MikeP Excel Discussion (Misc queries) 1 December 8th 08 07:29 PM
Identify User, Copy/Paste Login Info. to External File ryguy7272 Excel Programming 2 March 30th 08 06:01 PM
Login date & time to the VBA application. [email protected] Excel Programming 2 July 5th 07 03:25 PM
external web query? (sites that require login) JustinB Excel Discussion (Misc queries) 1 May 28th 06 09:01 PM
"Open With" external application macro [email protected] Excel Programming 0 September 27th 05 04:19 PM


All times are GMT +1. The time now is 10:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"