[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


How to kill the Excel Process

Posted on 2005-05-16
Medium Priority
Last Modified: 2010-04-23
I'm running a vb.net 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 64

Accepted Solution

Fernando Soto earned 120 total points
ID: 14013266
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
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 …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

873 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