Change to "Prompt Before Saving" Check Box Not Saved (115138)



The information in this article applies to:

  • Microsoft Excel for Windows 5.0

This article was previously published under Q115138

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


Modification Type:MinorLast Reviewed:10/11/2006
Keywords:kbProgramming KB115138