ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Running a external Program (https://www.excelbanter.com/excel-programming/369815-running-external-program.html)

MarkS

Running a external Program
 
I need to start a exernal program before running a excel macro

check the program is not all ready running ??
shell("C:\Program Files\Reuters\kobra\Program\kobra.exe")
wait for program to complete it's startup ??

This first and last steps are where I have a problem

Thanks MarkS

NickHK

Running a external Program
 
If this app is ActiveX, you could see if GetObject fails.
Or maybe AppActivate would work, if you know the Apps's title.
Or FindWindow API.
Or Enumerate the Processes with APIs.

Here's one way for the ShellAndWait:
http://www.mvps.org/access/api/api0004.htm

NickHK

"MarkS" wrote in message
...
I need to start a exernal program before running a excel macro

check the program is not all ready running ??
shell("C:\Program Files\Reuters\kobra\Program\kobra.exe")
wait for program to complete it's startup ??

This first and last steps are where I have a problem

Thanks MarkS





All times are GMT +1. The time now is 02:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com