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.
 

Some videos you may like

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
53,649
Office Version
365
Platform
Windows
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,102,292
Messages
5,485,978
Members
407,523
Latest member
Talicius

This Week's Hot Topics

Top