see https://blog.redxorblue.com/2018/07/executing-macros-from-docx-with-remote.html may be used to load a remote DOTM template with a VBA macro, from a DOCX file.