- Jun 2, 2008
- 163
- 0
- 0
I've been looking online and I still am stuck.
I'd like to select certain cells out of 50+ excel files.
Each file is the same, just different numbers.
So say I want to extract
A1, B5, C7, D9 etc..... What is my best approach?
I found some c# code and I'm able to capture one cell but I have to do a Define Name on the cell in Excel which I can't do because I'd have to edit 50+ files.
So say I want to capture A1. In excel I go to Define Name, give it a name.
http://www.geekpedia.com/tutor...adsheet-using-ASP.html
Then in c# I can make a query like this.
SELECT * FROM Projnum <---- Projnum is the defined name. The link above explains.
Is it possible to do something like
SELECT * FROM Sheet1$A1 or something???
I need to read 50+ cells and there is no order to them, they are are individual and then send it to a csv file.
I'd like to select certain cells out of 50+ excel files.
Each file is the same, just different numbers.
So say I want to extract
A1, B5, C7, D9 etc..... What is my best approach?
I found some c# code and I'm able to capture one cell but I have to do a Define Name on the cell in Excel which I can't do because I'd have to edit 50+ files.
So say I want to capture A1. In excel I go to Define Name, give it a name.
http://www.geekpedia.com/tutor...adsheet-using-ASP.html
Then in c# I can make a query like this.
SELECT * FROM Projnum <---- Projnum is the defined name. The link above explains.
Is it possible to do something like
SELECT * FROM Sheet1$A1 or something???
I need to read 50+ cells and there is no order to them, they are are individual and then send it to a csv file.