Publicado por: Gustavo Henrique | Março 7, 2009

Pegando dados do Excel …

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Buttons, Grids, DBGrids, StdCtrls, ExtCtrls, ComCtrls, ComObj;
.

.

.

Var
  w_string, Range_Planilha : String;
Range_Planilha := ‘A’ + Trim(EditLinhaInicial.Text) + ‘:Z’ + Trim(EditLinhaFinal.Text);

w_planilha := o_excel.Application.WorkBooks[1].WorkSheets[1].Range[Range_Planilha];

.

.

.


Deixe uma resposta

Sua resposta:

Categorias