Import data from multiple xls-files

matthijsm

New Member
Joined
Jul 8, 2011
Messages
5
Hello to all!

I got the following problem:

I need to import data from a specific sheet from multiple excel files in one folder.

For example:

There is a folder with xls files. Me and my co-workers use the xls file to keep track of our phone records. I would like to make a summary of all the files. Therefore I use a master xls (located in another folder).

To make the summary it's necessary to copy some data from all the single Excel files to the master.xls

In this example the data needed to be copied is located on sheet 6 A72:G80

I could use the paste special option in Excel, but that's a lot of work and the filenames may not change.

I think it's possible and much easier to this with VBA, but I don't now how. Can you help me out?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
This is a very nice code, just what I was looking for. Only one, problem. This code creates a new workbook with a new sheet.

I want to import the data to a workbook that already exists, for example copy it to the sheet where the code is in, on sheet "Data".

How can I achieve that?
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,254
Members
452,900
Latest member
LisaGo

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