Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
how can I find from macro if some non office aplication is running, how can I do it? tom |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
terminate a runnig macro | Excel Programming | |||
Runnig a macro when excel opens | Excel Programming | |||
Runnig macros in background mode | Excel Programming | |||
Runnig macros in background mode | Excel Programming |