View Single Post
 
Old 09-26-2019, 03:28 AM
ukzrsuwy5p ukzrsuwy5p is offline Windows 7 64bit Office 2007
Novice
 
Join Date: Sep 2019
Posts: 3
ukzrsuwy5p is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
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.
Reply With Quote