+ Reply to Thread
Results 1 to 3 of 3

Search all files in folder for numerous strings

  1. #1
    Forum Contributor
    Join Date
    12-14-2017
    Location
    birmingham, england
    MS-Off Ver
    2016
    Posts
    102

    Search all files in folder for numerous strings

    Hi,

    I have a folder with a seperate workbook for all the branches in our company, Liverpool, Manchester etc.

    In each workbook is a simple table that shows sales data, a sales number, name, email address, stock code etc.

    I then have a master workbook that has a list of stock codes in it.

    I need to be able to create a macro that searches through all of the workbooks and if it finds a matching value for any of the stockcodes, copy that row and paste it to a new worksheet in the master workbook with the title of the worksheet being the same name as the file name it found it in, with the rows of data throughout.

    I had something similar that searched for one key phrase and returned a row, but i need it to search for any string from an entire row of strings.

    Hope that makes sense and any help would be much appreciated.

    Cheers

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Search all files in folder for numerous strings

    Hello marcosis,

    The arrangement of your data and where it is located is critical to providing a solution. Please provide examples of the workbooks: The Master and a Sales workbook.

    Remember to redact or change any information of a sensitive or confidential nature prior to posting.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    12-14-2017
    Location
    birmingham, england
    MS-Off Ver
    2016
    Posts
    102

    Re: Search all files in folder for numerous strings

    Quote Originally Posted by Leith Ross View Post
    Hello marcosis,

    The arrangement of your data and where it is located is critical to providing a solution. Please provide examples of the workbooks: The Master and a Sales workbook.

    Remember to redact or change any information of a sensitive or confidential nature prior to posting.
    Hey,

    See attached. Forgot to say, the info sheets are password protected.

    The data can also be across 3 worksheets in each workbook.

    Cheers
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Excel VBA code for selecting a folder then search & open specified files in that folder
    By Excelrookie_1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-27-2021, 03:09 AM
  2. [SOLVED] Get Value In Between Strings From All Text Files In Folder
    By exc4libur in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-26-2016, 07:25 PM
  3. [SOLVED] Search and Replace Unique Text Strings Over Multiple Files
    By portokie in forum Excel General
    Replies: 2
    Last Post: 07-11-2016, 07:24 PM
  4. Replies: 3
    Last Post: 02-13-2015, 10:09 PM
  5. [SOLVED] keyword search numerous files in one folder
    By hk4kim in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-02-2013, 12:26 PM
  6. Search files in folder based on search string
    By djvice in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-22-2008, 01:12 AM
  7. Search & Extract various strings from many files to one excel file
    By Boca J in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2005, 08:05 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1