Docs HotXLS

Select-method

Selects the cells in the specified range

Syntaxe

procedure Select;

Exemple

This example activates the worksheet and selects the data-entry area so Excel opens with the expected cells highlighted

var
  Sheet: TXLSWorksheet;
begin
  Sheet := Workbook.Sheets[1];
  Sheet.Activate;
  Sheet.Range['A1', 'B3'].Select;
  Workbook.SaveAs('C:\Reports\data-entry.xls');
end;

Voir aussi