AutoExec and AutoExit are Auto macros that can be used in a global template, but AutoOpen and AutoClose won’t fire in a global template unless the document being opened or closed happens to be based on that global template. The macros discussed in your other thread (
https://www.msofficeforums.com/word-...-position.html) are Document_Open and Document_Close macros that work in a similar way to AutoOpen and AutoClose macros, but can't be used in a normal code module - which is where you went wrong with that code.
You cannot have more than one macro with the same name in a module, regardless of what that macro does or how it is run.