• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

VBA: Search string in files and list it's folders

inddon

Member
Hello There,

I have a column (A) which is list of one word, Column (B) is the directory-File name.

I would like to have a VBA sample which would do the following:
1. Search Directory Name- C:\Files

2. For every word in column (A), it should search the files in the above directory and it's sub-directories. If it finds the word in any or multiple files, then it should list the directory and the file name in column (B)

Could you please advice, how this can be achieved using VBA?

Look forward to hearing from you.

Regards,
Don
 
Back
Top