Selection.InsertCells Method 

Adds cells to an existing table.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim ShiftCells As Object
Dim selection1 As Selection
selection1.InsertCells(ShiftCells)

Syntax

Sub InsertCells( _
    <InAttribute()> Optional ByRef ShiftCells As Object _
)
void InsertCells(
    [In, Optional] ref object ShiftCells
);
public: Void InsertCells(
    &Object^ ShiftCells
);
public void InsertCells(
    /*in*/System.Object ShiftCells
);
function InsertCells(
     ShiftCells : Object
);

Parameters

Remarks

The number of cells inserted is equal to the number of cells in the selection.

You can also insert cells by using the Add method of the Cells object.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Selection Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Selection Members