+ Reply to Thread
Results 1 to 5 of 5

How to find a file name in Old Folder then save in New Folder if found

  1. #1
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    669

    How to find a file name in Old Folder then save in New Folder if found

    Hello All,
    I have a list of file name in Sheet1 then how can I find those file name in one foder "Old Folder",/. If found then save it into new folder "New Folder"

    Ex:
    Sheet1
    filename1
    filename3
    filename4
    filename5
    filename6
    filename7
    filename8
    filename9
    filename10

    Old Folder (there's total of 5 file name)
    filename1
    filename2
    filename3
    filename4
    filename5

    New Folder (4 files was found that match in sheet 1 then saved into New Folder
    filename1
    filename3
    filename4
    filename5

    Regards,
    tt3

  2. #2
    @dministrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    33,057

    Re: How to find a file name in Old Folder then save in New Folder if found

    Something like this... edit as needed:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    669

    Re: How to find a file name in Old Folder then save in New Folder if found

    Hi JB,
    Somehow code doesn’t work (could be the file name issue and format like: 12-34567-00 Z or 123-45678-901 X). Can you modify to search the first left 10 digit only.

    This is excel file
    Regards,
    tt3
    Last edited by tuongtu3; 03-08-2018 at 04:56 PM.

  4. #4
    @dministrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    33,057

    Re: How to find a file name in Old Folder then save in New Folder if found

    I can, but the 10 characters you demonstrated in the post above are not matches, so that wouldn't work either.

  5. #5
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    669

    Re: How to find a file name in Old Folder then save in New Folder if found

    Hi JB,
    Can you help with first left 12 digit of this format number 12-345678-00.

    Regarfs, tt3

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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