Documentação do HotXLS

Método Delete

Exclui uma célula ou um intervalo de células da Planilha

Sintaxe

function Delete(Shift: OleVariant): OleVariant;
Shift OleVariant. Especifica how para shift células para replace deleted células. pode be um de seguinte XlDeleteShiftDirection constants: xlShiftToLeft ou xlShiftUp

Exemplo

Este exemplo exclui a linha 3 da planilha um

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