+ Reply to Thread
Results 1 to 7 of 7

VBA assistance to save changes and quit application.

  1. #1
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,026

    VBA assistance to save changes and quit application.

    Hi All

    I have the following code that is supposed to automatically quit the application, yet doesn't.
    Any ideas where I am going wrong.
    Please Login or Register  to view this content.

  2. #2
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,026

    Re: VBA assistance to save changes and quit application.

    I've tried various options but the save prompt still comes up.

  3. #3
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: VBA assistance to save changes and quit application.

    Ignore considering post #2 but try setting the Saved property of the Active workbook to True.

  4. #4
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,026

    Re: VBA assistance to save changes and quit application.

    Hi Cytop

    Thanks for response. I have tried
    Please Login or Register  to view this content.
    I found this code that seems to work:

    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: VBA assistance to save changes and quit application.

    Whatever works for you but would question

    Quote Originally Posted by Post#1
    ActiveWorkbook.Save
    Quote Originally Posted by post#4
    ActiveWorkbook.Close SaveChanges:=False
    and including that AFTER an Application.Quit statement...

  6. #6
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,026

    Re: VBA assistance to save changes and quit application.

    Yeah, that does not seem correct?

  7. #7
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,026

    Re: VBA assistance to save changes and quit application.

    I have attached my workbook if someone is interested in having a look. Can't seem to find an alternative.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel VBA won't Application.Quit
    By Joey04 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-05-2014, 05:08 PM
  2. [SOLVED] Truly quit Excel using Application.Quit doesn't work
    By bta in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2012, 04:44 AM
  3. Application.Quit
    By Henry Hayden in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-07-2005, 12:00 PM
  4. [SOLVED] difference application.quit & application.close
    By Pierre via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-08-2005, 04:00 PM
  5. [SOLVED] application.quit
    By Murat Demir HEKIMOGLU in forum Excel General
    Replies: 3
    Last Post: 08-24-2005, 03:05 AM
  6. Application.Quit
    By Murat Demir HEKIMOGLU in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2005, 08:05 AM
  7. application.quit
    By Murat Demir HEKIMOGLU in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2005, 05:05 AM
  8. application quit problem
    By John in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-02-2005, 10:05 AM

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