AutoInsert 属性

       

如果属性值为 True,则在项目插入到文档中时将自动添加题注。Boolean 类型,可读写。

示例

在本示例中,Word 将为表格自动添加题注。本示例先将所选内容折叠为插入点,然后插入表格。题注将会自动添至新表格。

AutoCaptions("Microsoft Word Table").AutoInsert = True
Selection.Collapse Direction:=wdCollapseStart
ActiveDocument.Tables.Add Range:=Selection.Range, _
    NumRows:=2, NumColumns:=2