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 find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
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,214,913
Messages
6,122,207
Members
449,074
Latest member
cancansova

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