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

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,196,487
Messages
6,015,500
Members
441,898
Latest member
kofafa

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