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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Save Excel File Data to recordset 2
Reading multiple excel file into 1 dataset. 4
Format data in datagrid 2
Open Excel File. 1
Reading Excel file using VB 3
Exit program 8
Image button. 8
Open Excel File 4

Back
Top