Hola, saludos ...
asi es como importo datos de Excel.
Recorre todas las celdas del Excel e importa cada una de ellas.
Obviamente, tendrias q analizar de que manera se adapta a tu necesidad.
Código Delphi
[-] FileName := OpenDialog1.FileName;
Excel := CreateOleObject('Excel.Application');
Excel.Workbooks.Open(FileName);
Sheet := Excel.Workbooks[ExtractFileName(FileName)].WorkSheets[1];
Sheet.Cells.SpecialCells(xlCellTypeLastCell, EmptyParam).Activate;
CantRow := Excel.ActiveCell.Row;
CantCol := Excel.ActiveCell.Column;
RangoMatriz := Excel.Range['A1', Excel.Cells.Item[CantRow,CantCol]].Value;
for i:=1 to CantRow do
begin
for j:=1 to CantCol do
begin
Base.buscarTelefonos.Append;
Base.buscarTelefonosImei.AsString := trim(RangoMatriz[i,j]);
Base.buscarTelefonos.Post;
end; end; Excel.quit;