EXCEL - getting sheet names

T

Thomas

Hi - I've managed to get an ole db provider to read information in
from an excel spreadsheet, but I have to include the sheet name in the
select statements. I was wondering if someone could help me by
explaining or showing some sample code of pulling in the sheet names
before running a select statement. I am having the user point to the
excel file with the OpenFileDialog component and then want to
dynamically populate a Combobox with the sheet names availabe in the
spreadsheet so the user can pick one. Can anyone please help?
 

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

Top