Multiple spreadsheets

G

Guest

I receive multiple excel spreadsheets each week as part of a survey. I need
to consolidate several of the fields into a databse. How can I use
VBA/macro/function to consolidate the information from several excel
spreadsheets to one table without having to open all the spreadsheets?
Thank you.
 
K

Ken Snell [MVP]

You could import the spreadsheets into temporary tables (see
TransferSpreadsheet in Help file), and then run append and update queries as
needed to copy and modify the data into permanent tables.
 
G

Guest

I have done this for excels with one sheets. Now I want to do the same thing
but this time I want to import only the fifth sheet with name INCOME and to
import the first 4 columns (A to D). Using TransferSpreadsheet I know can
put the range. Can you tell me how to write the range.

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "tblTemp",
strFile, True, "........."

Kostas
 

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