Documentazione HotXLS

Clear metodo

Clears the cells in the specified range

Sintassi

procedura Clear;

Esempio

This example clears values, formulas, comments, e formatting from a temporary input area while leaving the rest of the worksheet unchanged Usa ClearContents when only cell values should be removed

var
  InputArea: IXLSRange;
begin
  InputArea := Workbook.Worksheets[1].Range['A1', 'G37'];
  InputArea.Clear;
  InputArea.Cells[1, 1].Value := 'Ready for new data';
end;

Vedere also