The information in this article applies to:
SUMMARY
When you edit the Personal.xls file in Microsoft Excel for Windows (or the
Personal Macro Workbook in Microsoft Excel for the Macintosh), you are
asked to save changes to it when you quit Microsoft Excel.
MORE INFORMATIONMicrosoft provides programming examples 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 article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.aspTo automatically save the macro file when you quit Microsoft Excel, use the appropriate method for your situation. Microsoft Excel 97 for Windows
Microsoft Excel 5.0 and 7.0 for Windows
Microsoft Excel 5.0 for the Macintosh
BackgroundExcel stores custom macros in the Personal.xls file in Microsoft Excel for Windows and the Personal Macro Workbook in Microsoft Excel for the Macintosh.In Microsoft Excel for Windows, the Personal.xls file normally resides in the \Excel\Xlstart folder. In Microsoft Excel for the Macintosh, the Personal Macro Workbook normally resides in the "System Folder:Preferences: Excel Startup Folder(5)" folder. When you open Microsoft Excel, the Personal macro Workbook opens automatically but is hidden. If you record a new macro and specify that the macro be recorded into the Personal.xls or Personal Macro Workbook, or if you edit it in any way, you will be prompted to save it when you quit Microsoft Excel. Simply unhiding workbook and then rehiding it counts as a change, and you will be prompted to save changes when you quit Microsoft Excel. REFERENCES
For more information about the Close event in Microsoft Excel 97, click
the Office Assistant, type close event, click Search, and then click to
view "WorkbookBeforeClose Event."
Q176476 OFF: Office Assistant Not Answering Visual Basic Questions"Microsoft Excel Visual Basic Programmer's Guide," pages 205-210 "Visual Basic User's Guide," version 5.0, Chapter 13, Creating Automatic Procedures and Add-in Applications For more information about Auto_Close macros, click the Index tab in Microsoft Excel Help, and type the following text: auto_close Additional query words: 5.00a 5.00c 7.00a 97 8.00 xl97
Keywords : kbprg kbdta kbdtacode PgmHowto KbVBA |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |