Attaching Auto_Open Macros to Templates in Excel 3.00

Last reviewed: November 4, 1994
Article ID: Q68722
The information in this article applies to:
  • Microsoft Excel for Windows, versions 3.0, 4.0, 4.0a, 5.0

SUMMARY

Auto_Open and Auto_Close macros defined on a template will be defined on every new sheet based on that template.

MORE INFORMATION

In the example below, the macro sheet EXAMPLE.XLM contains the following macros:

   A1: Start_Up
   A2: =ALERT("Good Morning",1)
   A3: =RETURN()

On the template MYFILES.XLT, Auto_Open has been defined as "=EXAMPLE.XLM!Start_Up".

Each time a new sheet is created based on the template MYFILES.XLT, the Auto_Open macro Start_Up will run, displaying the an Alert box with the message "Good Morning".

REFERENCES

"User's Guide 1," version 4.0,page 81 "Microsoft Excel User's Guide," version 3.0, page 555


KBCategory: kbprg kbmacro
KBSubcategory:

Additional reference words: 5.00 3.0 3.00 4.0 4.00


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: November 4, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.