excel - How can I kill task manager processes through VBA code? -
I am trying to kill some processes through VBA. I have a proprietary object that connects to the market data bus. Through the retirement I call this object to the pub / everyone in the bus. However sometimes the connection drops and I have to kill the process through the task manager. Is there any way to kill any process through VBA?
Thanks
Try this code,
Set as OSRR = GetObject ("VinamGMT:") as the Orange Dim CPRK object set in the form of Object Dim CPR cProc = oServ.ExecQuery ("Choose * from Win32_Process") for each OPOC XML in CPCC Rename EXEEL With this process you need to end in the line given below. Note: This case is sensitive if oppor .name = "excel .exe" was then used to display a message for pure testing using MSBBX "KEY". RetetCode = oProc.Terminate () End if Next
Comments
Post a Comment