HotXLS-dokumentation

Delete metode

Deletes a cell or a range of cells from the Worksheet

Syntaks

function Delete(Shift: OleVariant): OleVariant;
Shift OleVariant. Angiver how to shift cells to replace deleted cells. Can be one of the following XlDeleteShiftDirection constants: xlShiftToLeft or xlShiftUp

Eksempel

This example deletes row 3 from sheet one

Workbook.Sheets[1].Range['A3', 'A3'].EntireRow.Delete(xlShiftUp);