Selection.InsertColumns method (Word)
Inserts columns to the left of the column that contains the selection.
Syntax
expression. InsertColumns
expression Required. A variable that represents a Selection object.
Remarks
The number of columns inserted is equal to the number of columns selected. You can also insert columns by using the Add method of the Columns object.
If the selection isn't in a table, an error occurs.
Example
This example inserts new columns to the left of the column that contains the selection. The number of columns inserted is equal to the number of columns selected.
If Selection.Information(wdWithInTable) = True Then
With Selection
.InsertColumns
.Shading.Texture = wdTexture10Percent
End With
End If
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.