Attaching Auto_Open Macros to Templates in Excel 3.00

ID: Q68722


The information in this article applies to:


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

Additional query words: 3.0 4.0


Keywords          : 
Version           : 
Platform          : 
Issue type        : 

Last Reviewed: March 21, 1999