+ Reply to Thread
Results 1 to 7 of 7

Disable Save Prompt

  1. #1
    Registered User
    Join Date
    08-01-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Disable Save Prompt

    Win XP Pro, Version 2002, Service Pack 3

    Hello,

    A coworker wishes to disable the save prompt when closing Excel 2010, despite my best discouragement. This is accomplished easily with one line of code:

    Please Login or Register  to view this content.
    When this code is placed in the normal template of Word 2010, it works marvelously for all new and existing Word documents. However, I cannot get it to behave similarly in Excel. Excel apparently does not come with a built-in global template, so "personal.xlsb" must be created in the XLStart folder. Despite my not being able to physically see this file (hidden files viewable), I believe it exists because it shows up in my Visual Basic project explorer. I got it there by "recording" a macro and storing it in "Personal Macro Workbook" per the advice of a web reference. When I place the above code in the "personal" template in the same manner as I did in Word, it does not function for new and existing files.

    It may matter that IT has restricted employees from modifying files and folders under "Program Files", therefore I cannot create or save files directly to XLStart.

    Thanks for reading,
    -Daeghen
    Last edited by Daeghen; 03-14-2012 at 08:31 AM. Reason: Solved

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Disable Save Prompt

    Hello Daeghen,

    Try:

    Please Login or Register  to view this content.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Disable Save Prompt

    Check this

    http://office.microsoft.com/en-us/ex...005199391.aspx
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    08-01-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Disable Save Prompt

    Hello Winon,

    Thank you for you reply. I have tried that along with "ActiveWorkbook" with no success.

    -Daeghen

  5. #5
    Registered User
    Join Date
    08-01-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Disable Save Prompt

    I've narrowed the problem down to this: The "PERSONAL.XLSB" file exists, and I can store macros in it for use on all XL workbooks. I can actively run those macros from PERSONAL.XLSB on other opened workbooks, but I can't make them run on an event (BeforeClose). The code is stored in the "ThisWorkbook" module of PERSONAL, but it only runs *Before* I *Close* PERSONAL, where I want it to run when I close any other opened workbook.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Disable Save Prompt

    In the ThisWorkbook module of Personal:

    Please Login or Register  to view this content.
    This is a really bad idea.
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Registered User
    Join Date
    08-01-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Disable Save Prompt

    shg - That worked!

    I agree that it is a bad idea, and as mentioned earlier I tried to talk my coworker out of it. He did have a decent enough point. His job requires him to generate/download ~100 excel files from a database every day. He runs a quick task on that file, compares it to the database value, then closes the file. It is not necessary for him to save a copy, so the save prompt has evolved to an extreme annoyance.

+ 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