Ver Mensaje Individual
  #2  
Antiguo 11-05-2010
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
A ver si así:

Código Delphi [-]
procedure TForm1.Button1Click(Sender: TObject);
var
    Excel: OleVariant;
    Libro: OleVariant;
    Hoja: OleVariant;

begin
    Excel := ComObj.CreateOleObject('Excel.Application');

    Libro := Excel.Workbooks.Open('C:\ruta\al\archivo.xls');
    Hoja := Libro.ActiveSheet;
    Excel.Visible := true;

    ShowMessage(Hoja.Cells[2, 'B'].Hyperlinks[1].Address);
end;

// Saludos
Responder Con Cita