HotXLS-dokumentation

Insert metod

Infogar en cell eller ett cellområde i kalkylbladet och skiftar andra celler åt sidan för att göra plats

Syntax

function Insert(Shift: OleVariant): OleVariant;
Shift OleVariant. Anger which way to shift the cells. Can be one of the following XlInsertShiftDirection constants: xlShiftToRight or xlShiftDown

Exempel

This example inserts a new row before row 3

Workbook.Sheets[1].Range['A3', 'A3'].EntireRow.Insert(xlShiftDown);