#1   Report Post  
Posted to microsoft.public.excel.programming
Tom Tom is offline
external usenet poster
 
Posts: 25
Default Is runnig.

Hello,

how can I find from macro if some non office aplication is running, how can
I do it?

tom


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 339
Default Is runnig.


"Tom" wrote in message
...
Hello,

how can I find from macro if some non office aplication is running, how

can
I do it?

tom



Can you be more specific? Do you want to know if some other program tham
those from MS office is running? Would Firefox be such a program. More
importantly, why do you want/need to know?

/Fredrik


  #3   Report Post  
Posted to microsoft.public.excel.programming
Tom Tom is offline
external usenet poster
 
Posts: 25
Default Is runnig.

Hello,

I need chceck if this program (C:\Program Files\Attachmate\E!E2K\extra.exe),
becasue if yes I need exit macro.
I know how can i check it when its for example word, but how can I chcek ii
it another application.

Tom.


"Fredrik Wahlgren" wrote in message
...

"Tom" wrote in message
...
Hello,

how can I find from macro if some non office aplication is running, how

can
I do it?

tom



Can you be more specific? Do you want to know if some other program tham
those from MS office is running? Would Firefox be such a program. More
importantly, why do you want/need to know?

/Fredrik




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 339
Default Is runnig.


"Tom" wrote in message
...
Hello,

I need chceck if this program (C:\Program

Files\Attachmate\E!E2K\extra.exe),
becasue if yes I need exit macro.
I know how can i check it when its for example word, but how can I chcek

ii
it another application.

Tom.


You only want to check one prgram, is that it? Does this program have a
window? If so, you can simply use the FindWindow API.

/Fredrik


  #5   Report Post  
Posted to microsoft.public.excel.programming
Tom Tom is offline
external usenet poster
 
Posts: 25
Default Is runnig.

Yes it have got window. How can works find API. Can you give me example?
thanks tom

"Fredrik Wahlgren" wrote in message
...

"Tom" wrote in message
...
Hello,

I need chceck if this program (C:\Program

Files\Attachmate\E!E2K\extra.exe),
becasue if yes I need exit macro.
I know how can i check it when its for example word, but how can I chcek

ii
it another application.

Tom.


You only want to check one prgram, is that it? Does this program have a
window? If so, you can simply use the FindWindow API.

/Fredrik






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 339
Default Is runnig.


"Tom" wrote in message
...
Yes it have got window. How can works find API. Can you give me example?
thanks tom

Here's an example that shows how to use FindWindow
http://www.dicks-blog.com/archives/2...25/findwindow/

And here's a utility that will help you to find the class of the window.
It's a string which you can use in FindWindow
http://www.vbaccelerator.com/home/VB...py/article.asp

/Fredrik


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Is runnig.

You could use AppACtivate

On Error Resume Next
AppActivate "CodeLibrarian"
If Err.Number = 0 Then
MsgBox "Running"
End If

The name is that which you would see in tyhe Task Manager dialog.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Tom" wrote in message
...
Yes it have got window. How can works find API. Can you give me example?
thanks tom

"Fredrik Wahlgren" wrote in

message
...

"Tom" wrote in message
...
Hello,

I need chceck if this program (C:\Program

Files\Attachmate\E!E2K\extra.exe),
becasue if yes I need exit macro.
I know how can i check it when its for example word, but how can I

chcek
ii
it another application.

Tom.


You only want to check one prgram, is that it? Does this program have a
window? If so, you can simply use the FindWindow API.

/Fredrik






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
terminate a runnig macro JH Excel Programming 6 February 12th 05 05:39 AM
Runnig a macro when excel opens vman Excel Programming 3 December 18th 03 06:41 PM
Runnig macros in background mode Tom Ogilvy Excel Programming 0 August 6th 03 06:49 PM
Runnig macros in background mode Chip Pearson Excel Programming 0 August 6th 03 06:47 PM


All times are GMT +1. The time now is 04:05 AM.

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

About Us

"It's about Microsoft Excel"