Code: Select all
procedure ClearCell(const ACol, ARow: integer);
procedure CelarCells(const ACol1, ARow1, ACol2, ARow2: integer); // Should be ClearCells
Actually, it turns out that the method doesn't work at all.
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
var
StartCol, StartRow, EndCol, EndRow: Integer;
begin
// XLS is a TXLSReadWriteII5 component placed on the form at design-time, all properties left at default values.
XLS[0].FillRandom('A1:D9', 100);
if RefStrToColRow('A3', StartCol, StartRow) and RefStrToColRow('D3', EndCol, EndRow) then
XLS[0].CelarCells(StartCol, StartRow, EndCol, EndRow)
XLS.SaveToFile('E:\TempData\DummyExcelFile.xlsx');
end;