> -----Original Message----- > From: [email protected] [mailto:[email protected]] > On Behalf Of Malcolm Greene > Sent: Tuesday, March 08, 2011 7:38 AM > To: [email protected] > Subject: [NF] Word macro/VBA to determine whether other app is running > > A question for you MS Word mavens: > > Within a Word macro/VBA code block I need to determine whether an > external application is running so I can start the application if > it is not already running. > > Is there a way to accomplish this in Word or do I need to use a > win32 API call (I'm thinking of checking for the presence of a > specific mutex value)? Or might there be simpler ways to do this > like having my external application lock a specific file that > Word can try to write to to determine whether the other > application is running? > > By Word I mean Word 2003 or higher. > > Any ideas appreciated. > > Thank you, > Malcolm
I have the code in place at home, and see it pop up around here from time to time, where you can check (yes, using the Win 32 API) for whether or not an app is running or not. Pretty painless - something like 3-4 lines... wish I knew it off the top of my head but.... At least maybe putting it in place so you can move on until you find a non Win 32 API call which seems to be your preference... Thanks, Matthew Jarvis || Business Systems Analyst IT Department McKenzie-Willamette Medical Center 1460 G Street, Springfield, OR 97477 || Ph: 541-744-6092 || Fax: 541-744-6145 -------------------------------------------------------------------------- Disclaimer: This electronic message may contain information that is Proprietary, Confidential, or legally privileged or protected. It is intended only for the use of the individual(s) and entity named in the message. If you are not an intended recipient of this message, please notify the sender immediately and delete the material from your computer. Do not deliver, distribute or copy this message and do not disclose its contents or take any action in reliance on the information it contains. _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/69f310c05dd83c48a84ba3769ce1ecf8045b6...@tntriexevs02.triadhospitals.net ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

