PDA

View Full Version : Solved: Stop Excel process



orenr
12-28-2005, 01:52 AM
Hi,

I am looking for a script that kill the Excel.exe process.
I will appreciate your help

Thanks,
Oren

Marcster
12-28-2005, 02:56 AM
Hi orenr :hi:,

Does my KB entry help?
http://vbaexpress.com/kb/getarticle.php?kb_id=811&PHPSESSID=1cb569a01fa4f8c72a8267af2a62889f

Change the line:
strTerminateThis = "notepad.exe" 'Process to terminate,
to
strTerminateThis = "excel.exe" 'Process to terminate,
CAUTION:
This will search through all running processes and terminates
ALL instances of Excel.exe weather the're visible or not.
It will terminate the processes without asking if you want to save
the file or not.

Marcster.

orenr
12-28-2005, 08:40 AM
Many thanks.
It works great.
Thank you for the article and your assistance

Oren

Marcster
12-28-2005, 08:47 AM
Glad to help.

Marcster.