foreach (System.Diagnostics.Process p in System.Diagnostics.Process.GetProcesses()) { if (p.ProcessName.ToUpper() == "EXCEL") { p.Kill(); } }