HotXLS-dokumentation

Delete metod

Deletes a cell or a range of cells from the Worksheet

Syntax

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

Exempel

This example deletes row 3 from sheet one

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