Thank you so much for your answers. I'm sorry SkipVought, I don't know what you mean when you say Watch Window, I am italian and the italian software names and their menu functions are a little bit different. I went in the internet looking for softwares with Watch Window, Maybe I could find it...
This is the code I actually use.
Function fctExcelKiller()
sQuery = "SELECT * FROM Win32_Process WHERE Name LIKE '%Excel.exe%'"
Set objItems = objWMIService.ExecQuery(sQuery)
For Each objItem In objItems
objItem.Terminate
Next
End Function
Hi, I am trying to solve an issue but I do not know how. Sorry for my english.
On a computer, Excel is automatically launched by some script and this can happen more than one time.
So I can have two o three files opened by excel in the same moment.
I have to quit only one determinated instance...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.