Quote:
Originally Posted by gmayor
The code should work as long as the document created from the template can still see the template that contains the code. If the document is e.g. sent to a third party, then the document will no longer see the template and the code will not be available.
If you want the code to run when the document is created the macro should be Document_New
|
The document can see the template, but the macro code does not work. If we open the template and enable macros, then the macro code works. Next, save the template as a document, open the document, enable macros, the macro code does not work.