How to kill the Excel Process

Posted on 2005-05-16
Last Modified: 2010-04-23
I'm running a programme and I want to kill any Excel process running in the Task Manager before I run
my Programme. How to do it from the programme.

Question by:vmandem
    1 Comment
    LVL 62

    Accepted Solution

    You can do this to kill all the excel process on the system.

    Imports System.Diagnostics

            Dim myProcess As Process = New Process
            Dim ProcessList() As Process

            ProcessList = myProcess.GetProcessesByName("excel")
            Dim index As Integer = ProcessList.Length - 1
            While index >= 0
                index -= 1
            End While

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
    Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now