NativeExcel2 for .Net Developer's Reference

IRange.InsertMethod()

Inserts a cell or a range of cells into the worksheet and shifts other cells down to make space.

[Visual Basic]
SubInsert()
[C#]
voidInsert();
[C++]
voidInsert();
[JScript]
functionInsert();

Example

This example inserts range B2:F2 into sheet one and shifts other cells down.

[C#]
 book.Worksheets[1].Range["B2:F2"].Insert(); 
[VisualBasic]
 book.Worksheets(1).Range("B2:F2").Insert()
[C++]
 book->Worksheets->Item[1]->Range->Item[S"B2:F2"]->Insert(); 

See Also

IRange Interface | NativeExcel Namespace | IRange.Insert Overload List | Delete Method