Wednesday, May 06, 2009

Kill Residual Excel Process using VBA

Here is a simple VBA code to "Kill" the Excel process using VBA


Sub Kill_Excel()

Dim sKillExcel As String

sKillExcel = "TASKKILL /F /IM Excel.exe"
Shell sKillExcel, vbHide

End Sub

6 comments:

  1. Anonymous4:58 AM

    Most excellent! Thank you very much!!

    ReplyDelete
  2. Anonymous8:02 AM

    In the words of Borat,
    "Very Nice!"

    ReplyDelete
  3. aaaaaa10:22 PM

    Is it possible to stop process but never close excel workbook

    ReplyDelete
  4. Anonymous11:27 PM

    That is strange. Once the process gets killed the Application is no more in Memory

    ReplyDelete
  5. Anonymous12:30 PM

    Works Great - Thank You.
    I've been fighting with this problem for days . . . .

    ReplyDelete
  6. Anonymous6:21 AM

    Thanks a lot ;) was looking for something to kill excel while running PPT VBA code.
    Again :) THANKS :))
    Rami

    ReplyDelete

StumbleUpon
Share on Facebook

Visual Basic for Applications (VBA) Forum (recent threads)

CodeKeep VBA Feed

Visual Studio Tools for Office Forum (recent threads)

Download Windows Live Toolbar and personalize your Web experience! Add custom buttons to get the information you care about most.

Office Business Applications (OBA) Team Blog

MSDN Code Gallery Published Resources For Tag VSTO

microsoft.public.vsnet.vstools.office Google Group