InsertColumnsRight Method

Microsoft Word Visual Basic

InsertColumnsRight Method

       

Inserts columns to the right of the current selection.

expression.InsertColumnsRight

expression   Required. An expression that returns a Selection object.

Remarks

Microsoft Word inserts as many columns as there are in the current selection.

In order to use this method, the current selection must be in a table.

Example

This example selects the second column in the first table and inserts a new column to the right of it.

ActiveDocument.Tables(1).Columns(2).Select
Selection.InsertColumnsRight