+ Reply to Thread
Results 1 to 4 of 4

What is the VBA command to terminate the Excel.exe process

  1. #1
    Registered User
    Join Date
    12-27-2005
    Posts
    2

    Question What is the VBA command to terminate the Excel.exe process

    I am trying to set a schedule task that will run Excel VBA macro. The issue is that after the schedule task run once succesfully, it can't run again because the Excel.exe process is still running. The question is how can I terminate the Excel.exe process by using the VBA command

  2. #2
    Norman Jones
    Guest

    Re: What is the VBA command to terminate the Excel.exe process

    Hi Orenr,

    Try:

    Application.Quit

    ---
    Regards,
    Norman


    "orenr" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I am trying to set a schedule task that will run Excel VBA macro. The
    > issue is that after the schedule task run once succesfully, it can't
    > run again because the Excel.exe process is still running. The question
    > is how can I terminate the Excel.exe process by using the VBA command
    >
    >
    > --
    > orenr
    > ------------------------------------------------------------------------
    > orenr's Profile:
    > http://www.excelforum.com/member.php...o&userid=29912
    > View this thread: http://www.excelforum.com/showthread...hreadid=496113
    >




  3. #3
    Registered User
    Join Date
    12-27-2005
    Posts
    2
    Hi Norman

    I have this command in my code but it does not teminate the Excel process.
    I am looking for the VBA command that will terminate the Excel.exe process from the Windows processes

    Thanks
    Oren

  4. #4
    Norman Jones
    Guest

    Re: What is the VBA command to terminate the Excel.exe process

    Hi Oeenr,

    See:
    'Excel automation fails second time code runs'
    http://support.microsoft.com/default...b;en-us;178510


    ---
    Regards,
    Norman



    "orenr" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi Norman
    >
    > I have this command in my code but it does not teminate the Excel
    > process.
    > I am looking for the VBA command that will terminate the Excel.exe
    > process from the Windows processes
    >
    > Thanks
    > Oren
    >
    >
    > --
    > orenr
    > ------------------------------------------------------------------------
    > orenr's Profile:
    > http://www.excelforum.com/member.php...o&userid=29912
    > View this thread: http://www.excelforum.com/showthread...hreadid=496113
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1