![](/img/trans.png)
[英]How to open a word document and find text in it without showing the document?
[英]How to open a word document without resolving the attached template?
由于从Office 2000到Office 2010的迁移,我的单词模板名称已更改(从* .dot更改为* .dotm)。 现在,我想更新现有文档中指定的附加模板的声明。 我写了一些映射“旧”和“新”模板名称的过程,但是在检索旧模板名称时遇到了麻烦。 当使用Documents.open()
打开文档时,找不到指定的附加模板,因此将Normal.dotm作为默认应用,并且我的映射不起作用。 我没有找到关闭附加模板自动解析的方法。 奇怪的行为:打开文档后,原始模板名称可以在文档属性中看到,但?ActiveDocument.AttachedTemplate
是'Normal.dotm'
尝试这个:
MsgBox Dialogs(wdDialogDocumentStatistics).Template
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.