Results 1 to 3 of 3

Turn off the save changes message box!

This is a discussion on Turn off the save changes message box! within the Excel Questions forums, part of the Question Forums category; When I open an excel sheet using a macro. After viewing the sheet, I want to close it, but I ...

  1. #1
    New Member
    Join Date
    Mar 2004
    Posts
    18

    Default Turn off the save changes message box!

    When I open an excel sheet using a macro. After viewing the sheet, I want to close it, but I don't want the message box to display itself.

    " Do you want to save the changes made to sheet 1?"

    Yes, No, Cancel


    I want to turn this off. How can do this?

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Bogota, Colombia
    Posts
    11,945

    Default Re: Turn off the save changes message box!

    You can open the file as read only

    or,

    if you want to use some VBA, put

    Me.Saved = True

    in the BeforeClose event of the workbook.
    Regards,

    Juan Pablo González
    http://www.juanpg.com

  3. #3
    New Member
    Join Date
    Mar 2004
    Posts
    18

    Default Re: Turn off the save changes message box!

    Thank you for your expertise, Juan. It worked perfectly.

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
  •  


DMCA.com