if not opendialog1.Execute then exit; eclapp := createoleobject('excel.application'); workbook := createoleobject('excel.sheet'); workbook := eclapp.workbooks.open(opendialog1.FileName); Datas := workbook.sheets[1].Range[workbook.sheets[1].Cells.Item[1, 1], workbook.sheets[1].Cells.Item[20000, 11]].Value;for i := 2 to 20000 do begin for j := 1 to 11 do dvalue[j] := trim(datas[i, j]); if dvalue[j]='要查找的值' then beginshowmessage(inttostr(i)+'行,'+inttostr(j)+'列');break;end;end;