Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default 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



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
Use Macro to Run External Program Peter Excel Programming 2 January 19th 06 04:15 AM
Hyperlink to an external program furbiuzzu Excel Programming 1 November 2nd 05 07:17 AM
Run external program. Tom Excel Programming 1 April 14th 05 01:03 PM
Can I run an external program? [email protected] Excel Programming 17 December 7th 04 11:23 PM
How do I run an external program? Phillips Excel Programming 1 November 25th 03 05:23 PM


All times are GMT +1. The time now is 06:07 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"