InsertColumns 方法

       

在所选内容的左侧插入新列。如果所选内容不在表格中,则会导致出错。

注意   插入的列数与所选列数相等。用 Columns 对象的 Add 方法也可插入列。

expression.InsertColumns

expression   必需。该表达式返回一个 Selection 对象。

示例

本示例在所选内容的左侧插入新列。插入的列数与所选列数相等。

If Selection.Information(wdWithInTable) = True Then
    With Selection
        .InsertColumns
        .Shading.Texture = wdTexture10Percent
    End With
End If