【发布时间】:2015-12-11 18:33:05
【问题描述】:
我想插入一个定义为构建块的表。我在文档中的指定位置放置了一个内容控件,并通过“selectcontetcontrolsbytag”引用它。不幸的是,当表格插入内容控件时,它被转换为 RichText。这是我的代码:
ThisDocument.SelectContentControlsByTag("TermsConditions").Item(1).Range = _
ActiveDocument.AttachedTemplate.BuildingBlockTypes.Item(wdTypeTables).Categories.Item("Terms and Conditions Translation").BuildingBlocks.Item("Terms and Conditions Eng")
您能帮我用正确的代码在指定位置插入构建块吗?我也希望这个构建块被另一个替换,当用户从用户表单、组合框等中选择其他项目时。
【问题讨论】: