我需要在从word模板(.dot)创建新文件时调用特定的宏。我尝试了诸如“NewDocument”之类的事件,但它没有帮助。有没有其他方法可以做到这一点?
您可以使用AutoNew
sub AutoNew() <put your macro calls here> end sub
可在此处获取更多信息
https://docs.microsoft.com/en-us/office/vba/word/concepts/customizing-word/auto-macros