Solved

Access 2007 VBA Import Excel

Posted on 2014-10-09
1
285 Views
Last Modified: 2014-10-14
I have 20 Excel 2007 files that I would like to import into 20 seperate tables in an Access 2007 DB. What is the VBA code for importing.

1 of the 20 Excel files has two sheets that I need imported into two seperate tables.
0
Comment
Question by:CMILLER
1 Comment
 
LVL 35

Accepted Solution

by:
PatHartman earned 500 total points
ID: 40371213
DoCmd.TransferSpreadsheet ....
Use intellisense to get the syntax or read about it in help.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question