Consulting

Results 1 to 4 of 4

Thread: Search folder with a value in cell

  1. #1
    VBAX Regular mikke3141's Avatar
    Joined
    Jun 2007
    Location
    Klaukkala
    Posts
    53
    Location

    Search folder with a value in cell

    What would be the best code to go through all the workbooks in a folder and show the workbooks that have a specific text in any cells in any sheets in any workbooks in the folder specified? Thank you for your help,

    Mike

  2. #2
    Knowledge Base Approver VBAX Guru GTO's Avatar
    Joined
    Sep 2008
    Posts
    3,368
    Location
    Greetings Mike,

    Maybe just me, but a tad more detail would seem helpful. Are we looking for a whole match against each cell, or a substring? What are we doing upon finding whichever we are looking for, etc...

    Have you attempted any code thus far?

    Mark

  3. #3
    VBAX Regular mikke3141's Avatar
    Joined
    Jun 2007
    Location
    Klaukkala
    Posts
    53
    Location
    To have a find in any cell in the workbooks in the folder that have an exact match.

    I was requested to find the excel file that had the number 45134234 in any cell in the folder. Windows did not support the request with any standard tools.

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    See my response to minger15's post, it should get you started.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •