Export Excel Data to Access using VBA

RaydenUK

Board Regular
Joined
Mar 25, 2014
Messages
74
I have several excel spreadsheets on several different computers and one Access database on a network drive. Each spreadsheet has a macro that sorts raw data into a single table with column titles. I have very little knowledge of Access or even creating SQLs, but I do work with Macros in excel frequently.

How can I link my excel data to an already existing table in access?
The excel data is already sorted to match the headers in Access.
The data needs to be placed beneath the existing data in Access.
Note that data is not stored in the excel sheets, rather it is cleared out when the macro is ran again for another set of data.
Is there a way to write in vba to automatically dump this data into my Access table named "Access QC Database"?
The file path for the Access database is Q:\Access QC Database.accdb.
The tab title in excel that has the data is called "DB"

If possible, I would like to avoid any prompts from popping up, like Yes or NO options, due to the amount of times that the macro has to be ran. Basically press the macro button and that's it.
I would greatly appreciate any help on this matter because I have been searching the internet for quiet some time trying figure this out.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi Rayden, suggest you post this on the "main" excel forum, as this is not a Power BI question.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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