+ Reply to Thread
Results 1 to 3 of 3

Disable save changes prompt

  1. #1
    Registered User
    Join Date
    07-09-2008
    Location
    Panama City, FL
    MS-Off Ver
    2007
    Posts
    42

    Disable save changes prompt

    I have a file that I don't want people to change at all, so there is no need for them to be prompted whether they want to save changes when closing the file. Does anyone know how to disable this? I found a few supposed solutions on various other forums, including:

    Please Login or Register  to view this content.
    However, neither of these worked for me. A debug statement in the first showed me that Excel wasn't even getting into it when I went to close the sheet. What's wrong with my syntax?

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try this code in ThisWorkbook module

    Please Login or Register  to view this content.
    or set the the workbook as read-only?

    http://www.bettersolutions.com/excel...E618512332.htm

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    07-09-2008
    Location
    Panama City, FL
    MS-Off Ver
    2007
    Posts
    42
    Thanks very much - the code was perfect. I think that my problem was that I was putting it in the wrong place, so thanks also for specifying the "ThisWorkbook" module.

+ 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