Batch import excel files

Q

Question Boy

Would anyone have a good method to import a large number of standardized
excel files?

My boss finally saw the light, that individual workbooks do not give proper
oversight and now wants me to develop a small db to replace the workbooks.
He also wants me to import all the existing information (1000+ spreadsheets).
They are all setup the same way (layout). How can I automate this task? I
really cannot conceive doing this manually.

Thank you,

QB
 
P

pietlinden

Would anyone have a good method to import a large number of standardized
excel files?

My boss finally saw the light, that individual workbooks do not give proper
oversight and now wants me to develop a small db to replace the workbooks. 
He also wants me to import all the existing information (1000+ spreadsheets).
 They are all setup the same way (layout).  How can I automate this task?  I
really cannot conceive doing this manually.

Thank you,

QB

Create an import specification to map the sheet to a table in your
database. (one for each sheet that goes into a different table). Then
once you have that, you can use Allen Browne's code to loop
directories and subdirectories and grab all the excel files using
DIR(). Then you would use TransferSpreadsheet if the import is easy.
Otherwise, you'd have to do something like create a query on an excel
file, and change the SQL in code and execute it. (Or use ADO). How's
that for a vague confusing answer?
 

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