01-23-2012, 10:34 AM
Hi,
You can use the below function. This will close any process running in task bar. All you need to do is to pass the process name.
Regards,
Ankesh
You can use the below function. This will close any process running in task bar. All you need to do is to pass the process name.
Code:
Public Function CloseProcess(strProgramName)
Dim objShell
Set objShell = CreateObject("WScript.Shell")
objShell.Run "TASKKILL /F /IM " & strProgramName
Set objShell = Nothing
End Function
Ankesh