The following works for me:
var
Excel: ExcelApplication;
Workbook: ExcelWorkbook;
Sheet: ExcelWorksheet;
begin
Excel := CoExcelApplication.Create;
Workbook := Excel.Workbooks.Add(EmptyParam, LOCALE_USER_DEFAULT);
Sheet := Workbook.ActiveSheet as ExcelWorksheet;
Sheet.Range['A1','A1'].EntireRow.Delete(EmptyParam);
end;
Please note that I use early binding, which makes life much easier. Just turn on the Excel2000 block and this code will work for you.
, , .
, , Sertac, :
Excel.ActiveSheet.Rows[1].Delete;
, !