+ Reply to Thread
Results 1 to 4 of 4

Application.Quit does not exit Excel

  1. #1
    Registered User
    Join Date
    11-14-2012
    Location
    Louisiana
    MS-Off Ver
    Excel 2007
    Posts
    3

    Application.Quit does not exit Excel

    I am using a macro to save and exit excel with the following code:

    Please Login or Register  to view this content.
    My problem is this is only closing the workbook and does not exit excel. How can I modify this to exit Excel completely?

    Thanks,


    Moderator's Note: Welcome to the forum, You have to put code tags around code. Select the codes then hit the "#"
    Last edited by vlady; 11-14-2012 at 08:59 PM. Reason: code tags

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Application.Quit does not exit Excel

    Assuming that the activeworkbook is the workbook that contains the code, the code stops executing when you close it. Remove the Close statement.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-14-2012
    Location
    Louisiana
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Application.Quit does not exit Excel

    That worked. Thank you for help and the quick response!

  4. #4
    Registered User
    Join Date
    02-12-2013
    Location
    Bucharest, Romania
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Application.Quit does not exit Excel

    ForumGuru: You ARE a Guru! I an an ex programmer on IBM Mainframe and I know your "one and a half line comment" solved me a great deal of time! Once you explained the culprit , you did not even had to tell us to remove the "close statement". I GIVE YOU THUMS UP !

+ 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