+ Reply to Thread
Results 1 to 3 of 3

Close without saving

  1. #1
    Registered User
    Join Date
    05-09-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    41

    Close without saving

    I have the following bit of code in a macro.
    Please Login or Register  to view this content.
    It essentially attemps to close the Project.xlsm workbook and promps the user to either save, not save or cancel closing the workbook.

    I never want the user to save any changes made to Project.xlsm. It is merely a tool to make changes and create and save other workbooks. And once it's done doing that I want it closed without saving changes so it's clean and ready to do it again.

    Is there a way to change the code above so that it exits Project.xlsm without saving changes and without prompting the user to save, not save or cancel? Searching the internet and this site all I could find was to put (False, False) at the end of the 4th line, but that didn't work for me.
    Last edited by SinGin; 06-05-2010 at 05:33 AM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Close without saving

    SinGin
    can you use this code?

    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    05-09-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: Close without saving

    Thanks, works great.

+ 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