Read Data from excel & save to recordset

  • Thread starter Thread starter Phoebe.
  • Start date Start date
P

Phoebe.

Hi, Good Day!

How can I read data from excel file and save them into a recordset?

Can someone help?
Thanks in advanced.

rgds,
Phoebe.
 
Hello Phoebe

Had a reference in the COM components of Microsoft Office
(Version Number) Object Library in your project. Create
an instance o excel application and add a book. Then use
the Book.Open(ExcelFileName) to open the excel document.
Them select the first sheet and sheet.range("A1").text to
read the value in cell A1.

Kind Regards
Jorge
 
Thanks Cor,

How can i file my excel data into dataset then?

Any example on this? Thanks again.
 
Thanks Jorge,

I want to open the excel file and display it in either datagrid or dataset
since i hv a few excel file with the same format but different data to be
display.

Can you help again.
Thanks.
 
Back
Top