Search for Words in other files

eforti

Board Regular
Joined
Aug 15, 2005
Messages
222
Hello all,

I realize there are other topics out there about this but I can't seem to find one that fits my need. That or I can't understand how it was applied etc...

I would like to be able to have a worksheet with 3 variables.
Variable 1: A message box that appears and asks to browse to a directory. (I want to be able to search the files in this directory for text contained in the files)
Variable 2: I would like a cell with data in it that excel will search for in the specified directory (as little as one word/number, as much as a sentence)
Variable 3: I would like the search results (the files that contain the keywords) displayed in the adjacent cells.

Lets say that Cell A2 contains the data that excel will be searching for. Cell B2 would be where excel returns it's initial results. If the term is found in more than one file, the results will continue downward into cell B3, B4 and so on. I apologize that I cannot post an example. I am at work and can't seem to get the html addin working.

If anyone has any suggestions or a link to another posting that I couldn't find, it would be much appreciated.

Thank you

-40
 

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
why work so hard when all you have to do is use Windows (file) Explorer which offers the feature exactly as you want it?

In Excel, this would require extensive VBA work.
 
Upvote 0

Forum statistics

Threads
1,222,403
Messages
6,165,847
Members
451,987
Latest member
ExcelIsLove

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