XL5: Change to "Prompt Before Saving" Check Box Not Saved

Last reviewed: September 2, 1997
Article ID: Q115138
The information in this article applies to:
  • Microsoft Excel for Windows, version 5.0

SUMMARY

In Microsoft Excel 5.0, you can use the AUTOSAVE.XLA add-in function to automatically save your workbooks at a time interval that you specify.

When you change the Minutes and Save options, these changes remain in effect the next time you start Microsoft Excel. However, if you clear the Prompt Before Saving check box, this change applies only to the current session of Microsoft Excel. (That is, when you restart Microsoft Excel, the Prompt Before Saving check box is automatically reselected.)

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Excel for Windows version 5.0c.

MORE INFORMATION

You can use a macro to clear the Prompt Before Saving check box. If you want this macro to start automatically each time you run Microsoft Excel, create the following Visual Basic, Applications Edition, macro and store it in your Personal Macro Workbook (which should be located in the XLSTART subdirectory).

NOTE: For this macro to run correctly, the AUTOSAVE.XLA add-in macro must be loaded by choosing the Add-Ins command from the Tools menu.

Microsoft provides examples of Visual Basic procedures for illustration only, without warranty either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. This Visual Basic procedure is provided 'as is' and Microsoft does not guarantee that it can be used in all situations. Microsoft does not support modifications of this procedure to suit customer requirements for a particular purpose. Note that a line that is preceded by an apostrophe introduces a comment in the code--comments are provided to explain what the code is doing at a particular point in the procedure. Note also that an underscore character (_) indicates that code continues from one line to the next. You can type lines that contain this character as one logical line or you can divide the lines of code and include the line continuation character. For more information about Visual Basic for Applications programming style, see the "Programming Style in This Manual" section in the "Document Conventions" section of the "Visual Basic User's Guide."

Visual Basic Macro

Sub Auto_Open()

    Application.SendKeys ("%p~")
    Application.Run _
       Macro:=Range("AUTOSAVE.XLA!mcp01.AutoSavePreferences")

End Sub

REFERENCES

For more information about the SendKeys function, choose the Search button in Visual Basic Help and type:

   SendKeys


Additional query words: 5.00 reset retain setting
Keywords : kbprg PgmHowTo PgmOthr kbcode kbprg
Version : 5.00
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 2, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.