VBA - Search all Excel files in specified folder.

acarterczyz

New Member
Joined
Jan 4, 2013
Messages
21
Hey guys,

I'm trying to create a macro in Excel that will search all files in a specified folder. There are about 90 files (all with the same header) and have 100,000+ rows. What I need it to do is basically allow me to specify the header and criteria on Sheet1 and search through all files for anything that matches that criteria and pastes it to Sheet2.

I currently have a macro that opens all the files in the folder (and converts them to binary), but I don't know how to get them to copy matching criteria over to Sheet2.

Any help would be MUCH appreciated!


Edit:
This is what Sheet1 looks like.
e8sbde.jpg
 
Last edited:

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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