Extracting specific cell values from multiple worksheets

jdhfch

Board Regular
Joined
Jan 25, 2018
Messages
79
Office Version
  1. 365
Platform
  1. Windows
Hi,

Please can someone help?

I have a folder with around 1200 individual XLSX files in, all the same format, but with different file names.

I am wanting to extract some info in only key cells in each file into a master file:

  1. Cell D1 - Name
  2. Cell D2 - Cust Number
  3. Cell D5
  4. Cell E65
  5. Cell F65
  6. Cell G65
  7. Cell H65
  8. Cell I65

An example layout would be:

NameCust NumberCell D5Cell E65Cell F65Cell G65Cell H65Cell I65
Example1234ColaPlain CrispsPlain NutsStill WaterBiscuitsBee
Is there any easy way to do this that can be updated frequently?

I am using Excel 365

Many thanks
 
Change
Code:
    ThisWorkbook.Sheets(1).[a1].CurrentRegion.ClearContents
to
Rich (BB code):
    ThisWorkbook.Sheets(1).[a1].CurrentRegion.Resize(, 9).ClearContents
    ThisWorkbook.Sheets(1).[a1:i1] = Array("Filename", "Client no", "Client name", _
        "Manager", "list 1", "list 2", "list 3", "list 4", "list 5")

Perfect - thank you!
 
Upvote 0

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
jdhfch,

Please Note: When marking a post as the solution, please mark the post that contains the solution (not your own post acknowledging that some other post was the solution).
When a post is marked as the solution, it is then shown right underneath the original question so people viewing the question can easily see the question and solution in a single quick glance without having to hunt through all the posts.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,205
Members
452,618
Latest member
Tam84

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