Create Acces Tables from Excel sheets VBA

Flank

Board Regular
Joined
Dec 12, 2011
Messages
83
I am trying to find a quick way to load up my access database with new tables created from multiple excel sheets.

I have 160 sheets with headers that I want to import into Access from Excel using the sheet name as the name of the access table name. Use the first row in each tab as the field names inside the table and the second row in the sheet to define the field type.

Well they will all be number format so that last part can be hard coded in.

I tried following some other mentions of creating tables via excel but I am a bit stumped.

I have code that I have used before for uploading data from excel into specified tables but I cannot figure out how to create new tables. Driving me crazy.

As I will be uploading an additional 200 sheets into another database, I would rather not have to do each of these manually.

I am using Excel & Access 2007
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,203,356
Messages
6,054,922
Members
444,759
Latest member
TeckTeck

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top