When you have multiple macros with the same name in different templates, see
The Hierarchy of Templates in Microsoft Word.
Those in the document run before those in the attached templates which run before those in the normal template which run before those in other global templates. I suspect but do not know that when you have the same macro in multiple global templates, the macro in the first template loaded will run, but I do not know that.
Consider giving more explicit names or including the project name in the name called.