import excel data into access using VBA

monil

New Member
Joined
Apr 14, 2007
Messages
2
We have a Master Excel sheet which the vendors send us with the required information. Not all vendors have MS Access. So, it is upto us to import the data from Excel into Access using the wizard. Unfortunately, for now, our system can accept just .mdb files for processing.

We are trying to automate the process wherein, there would be a button which would say "Convert to MDB". So, that should generate a .MDB (database) with the tables as the sheets available in Excel sheet.

If the Excel workbook contains 3 sheets (sheet1, sheet2, sheet3), then, the AccessDB should have three tables (sheet1, sheet2, sheet3) along with the data.

For simplicity, we can assume all the data to be imported is for "Text" format.

I am wondering if there is a working solution for the same.

Any help is appreciated.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,224,590
Messages
6,179,749
Members
452,940
Latest member
rootytrip

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