This is a tricky one!
I am currently looking for the most efficient and quickest way to import multiple Excel files into a db. I will explain as much as possible and hopefully some of you have some ideas.
-We are talking about 700 Excel files
-The files are all formatted the same.
-Each file has 5 workbooks.
-The files are not formatted well for straight importation into a db.
Some ideas I have...
-I batted around the idea of writing a script to use each file as a datasource and to write out properlly formatted csv files or something in that ilk. This won't work since I would have to go through each file and worksheet to make named ranges for the queries.
-I also played with the idea of creating one more worksheet in each file that could colate the needed data into a nice tabular form that could easily be imported into a db(not really easily rather more easily than other ideas). This idea has promise except that the worksheets are not named the same in each file. 4 of the worksheets are named the same(VRS,Screenings,Training,Certifications) but one is different in every file as it is named for the person who file this is(these are personnel files). This means we'd have to create a new worksheet in each file and then copy+paste the code for the page and then change the references to some of the data on the differently named worksheets. If anyone can give me an idea of how to easily copy a worksheet from one book to another and have it perform the same way with proper reference changes and all that could be the best way.
-I played around with the idea of exporting each files worksheets into csv and then writing a script to format them. This could work but I don't know how to export the excel files(the worksheets) automatically. Going through and exporting 3500 worksheets by hand is NOT an option.
I have some other ideas floating around but I haven't vetted them enough yet to see if they are possible.
Any ideas would helpful.. even if the idea only solves part of the problem please mention as I think this may end up being a very collaborative effort.
I am currently looking for the most efficient and quickest way to import multiple Excel files into a db. I will explain as much as possible and hopefully some of you have some ideas.
-We are talking about 700 Excel files
-The files are all formatted the same.
-Each file has 5 workbooks.
-The files are not formatted well for straight importation into a db.
Some ideas I have...
-I batted around the idea of writing a script to use each file as a datasource and to write out properlly formatted csv files or something in that ilk. This won't work since I would have to go through each file and worksheet to make named ranges for the queries.
-I also played with the idea of creating one more worksheet in each file that could colate the needed data into a nice tabular form that could easily be imported into a db(not really easily rather more easily than other ideas). This idea has promise except that the worksheets are not named the same in each file. 4 of the worksheets are named the same(VRS,Screenings,Training,Certifications) but one is different in every file as it is named for the person who file this is(these are personnel files). This means we'd have to create a new worksheet in each file and then copy+paste the code for the page and then change the references to some of the data on the differently named worksheets. If anyone can give me an idea of how to easily copy a worksheet from one book to another and have it perform the same way with proper reference changes and all that could be the best way.
-I played around with the idea of exporting each files worksheets into csv and then writing a script to format them. This could work but I don't know how to export the excel files(the worksheets) automatically. Going through and exporting 3500 worksheets by hand is NOT an option.
I have some other ideas floating around but I haven't vetted them enough yet to see if they are possible.
Any ideas would helpful.. even if the idea only solves part of the problem please mention as I think this may end up being a very collaborative effort.