+ Reply to Thread
Results 1 to 6 of 6

To exit Excel without prompting save dialogue and saving changes

  1. #1
    Registered User
    Join Date
    09-17-2012
    Location
    Punjab, india
    MS-Off Ver
    Excel 2010
    Posts
    1

    To exit Excel without prompting save dialogue and saving changes

    type this code in workbook's before close event

    Please Login or Register  to view this content.
    now when you will close the workbook it will not prompt to save the workbook but it will save all the changes u made in workbook before closing.
    Last edited by Paul; 01-11-2013 at 03:38 PM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: To exit Excel without prompting save dialogue and saving changes

    Thanks for this tip.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    03-12-2014
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: To exit Excel without prompting save dialogue and saving changes

    Wow! Thanks for this! :D

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: To exit Excel without prompting save dialogue and saving changes

    Very useful, to extend the idea a bit:
    Please Login or Register  to view this content.
    could be used if you had a large workbook which took some time to save, as it would only do it if the workbook was not already saved.

    Also:
    Please Login or Register  to view this content.
    Would do the opposite, and close the workbook without saving/prompting. Althogh I suspect there are other ways of doing this, maybe using displayalerts = false.

  5. #5
    Registered User
    Join Date
    05-14-2014
    Location
    Montreal, CA
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: To exit Excel without prompting save dialogue and saving changes

    great tip, thanks

  6. #6
    Registered User
    Join Date
    06-13-2014
    MS-Off Ver
    2010 , 2013
    Posts
    6

    Re: To exit Excel without prompting save dialogue and saving changes

    is this a great tips did you try it, maybe i will try before i said this is great shared ideas, but for the above post i am positive this is working..

+ 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