我有一个单词2003.Dot模板,位于用户的STARTUP
文件夹中。
我在这个模板中有一些带有autoexec
程序的模块。
在其中一个中,我想阅读一个ini文件。如果我的模板为my.dot
,则ini文件将为my.dot.ini
。
在autoexec sub
的启动宏中,阅读Application.ActiveDocument.AttachedTemplate
会返回normal.dot ...而不是my.dot
。
如何获取当前正在执行的模板的名称?
答案 0 :(得分:0)
您可以通过ThisDocument.AttachedTemplate属性访问当前正在执行的模板。