2
Answers

How to kill excel process

Gomathi Palaniswamy

Gomathi Palaniswamy

12y
6.2k
1

foreach (Process p in Process.GetProcesses())
{
if
(p.ProcessName == "EXCEL")
{
p.kill()

}
}

i am using above code to kill the excel process..but it returns access denied error..please help me to kill all excel process...its urgent..pls reply..

Answers (2)