Import Excel Files into single sheet from single directory

acc16

New Member
Joined
Aug 8, 2010
Messages
12
Hi,

I am positive that someone can provide help on my requirement.

Currently I am having around 50+ files in one single directory and would like to import only those files which are in present in the Excel Worksheets using VBA.

For example:
My files are in C:\Exceldump directory
Master Excel sheet name : MasterSheet.xls
Worksheets in MasterSheet.xls are: Sales, Mkt, Dist, Logist

Files which are present in the directory are: Mkt.xls, Dist.xls, Logist.xls, Airp.xls, Sims.xls, Sales.xls


Since only Sales, Mkt, Dist & Logist are in the worksheet, the VBA should be able to pick only these 4 files and import it.


Import Rule:
Since the first 9 columns (A to I) for every worksheet is having formula, the import vba should only start putting the values from Column J.

Urgent help is highly appreciated.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
There are lots of old threads in this forum that deal with this subject. If you use the Advanced Search functionality, you should be able to find lots of them. Post back if you have any trouble locating these.
 
Upvote 0

Forum statistics

Threads
1,224,561
Messages
6,179,521
Members
452,923
Latest member
JackiG

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