Question : Import specific fields from Excel worksheets into Access

I have an Excel spreadsheet, with multiple worksheets and dozens of fields in each worksheet, and I need to import 3 specific fields from those worksheets into an Access table. Unfortunately the worksheets have the specific fields in different columns so worksheet A has the Site ID in column 2 and worksheet B has the Site ID in column 8.  The field names are all the same through the worksheets, just the position is different.

I thought of using the range in a DoCmd.TransferSpreadsheet to pick out the info but I have to use the range to identify the worksheet, as far as I can tell, so cannot also use it to identify the field name.

I tried playing with SQL but don't know enough about it to write the correct code.  I could import all 10 worksheets into their own tables and then write a query to pull just the fields I need into one table but that seems very unwieldy. Is there a faster/better way to do this?

I am posting this at 4:24pm EST but have to leave so if you post answers quickly, as you experts normally do, please do not get upset if I don't respond right away. I will be back online in about 2 hours.

Answer : Import specific fields from Excel worksheets into Access

Try this link.  

http://www.experts-exchange.com/Microsoft/Development/MS_Access/Access_Coding-Macros/Q_22104797.html
Random Solutions  
 
programming4us programming4us