VBA可以访问Word文档中settings.xml.res中的数据吗?

时间:2018-10-11 21:46:58

标签: vba

我知道Microsoft Word docx文档本质上是zip存档。如果使用.zip扩展名重命名它们,则可以看到多个文件。

完成此操作后,位于\ word_rels \ settings.xml.rels中的文件包含一些数据。

我的Word文档中有一个宏。当我运行该宏时,我想从该XML文件(尤其是Relationships节点)中提取数据。

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="xxxxxx" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/attachedTemplate" Target="http://myurl" TargetMode="External"/></Relationships>

我在想(希望)有一个VBA对象包含此数据,但到目前为止还找不到任何东西。

我尝试使用ActiveTemplate.AttachedTemplate,但这只是给我normal.dotm。

0 个答案:

没有答案