Question Multiple Excel Sheets in worksheet to Access

Sammy1362

New member
Local time
Today, 18:12
Joined
Mar 16, 2012
Messages
1
Hi Everyone.

This is Sam and I am very new to Access. I am just learning.

I have 36 excel files (a file for each year). each file has 31 tabs with the exact same table but different data for each day of the month.

I need to bring in all the data into one table in access so I can extract data.

I don't know what VBA is. Can someone in plain English please tell me how to do import these data into one table in access?

Regards

Sam
 
Hard to do in plain English when dealing with technical stuff - but here goes!:)

Firstly, some assumptions:
1. Each worksheet of all workbooks has an identical layout (given)
2. Each worksheet has a headings row which is in row 1 only (i.e. not multiple heading rows)
3. You want to do this manually, rather than automate the process
4. You have a database set up to contain the table to be created

Based on the above assumptions, the outline steps are:
1. Import your first worksheet (from any workbook) to create your Access table
2. Import all subsequent worksheets from each workbook in turn to the table create in step 1

The detail for these steps is:
Step 1:
1. In Access, open your database
2. On the Ribbon, go the the External Data tab, Import group and select Excel
3. In the dialog box which opens, a) browse to your first workbook and b) select Import the source data into a new table in the current database. Press OK
4. On the next dialog box which opens, make sure the radio button Show Worksheets is selected. Select the first worksheet to be imported.
5. Follow the process by selecting the Next button until you get to the last dialog which allows you to define the import table name. Enter the table name you want, or leave it at the default setting given. Do NOT check I would like a wizard ... (you can do this later when all data have been imported - if you want/need to).
6. Press Finish. Close the next dialog box, but do NOT save the import steps (because each subsequent import will be different)

Step 2.
1. On the Ribbon, go the the External Data tab, Import group and select Excel
2. In the dialog box which opens, a) browse to the source workbook and b) select Append a copy of the records to the table, then select the table name created in step 1. Press OK
3. In the first dialog box, select the next worksheet to be imported
3. Follow the process through the series of dialogs, or just press Finish (note - you must make sure all of the headings match between the table and the worksheet at this stage)

Repeat step 2 for all worksheets in all workbooks.

You may encounter errors along the way, which will probably be data-related. I can't predict what these might be, but if you get stuck with anything, then post details and we'll see if we can help.

Good luck!:cool:
 
why do you want to use VBA? why not simply omport the files?
You don't even inport the files, you can copy paste the data from Excel into the Access table.
 

Users who are viewing this thread

Back
Top Bottom