+ Reply to Thread
Results 1 to 3 of 3

Copying/moving files to a pre-exsiting sub-folder based upon column attribute

  1. #1
    Registered User
    Join Date
    02-08-2016
    Location
    USA
    MS-Off Ver
    2010
    Posts
    2

    Question Copying/moving files to a pre-exsiting sub-folder based upon column attribute

    Hello all,

    Column A contains a file name (not full path, just name "1318720900.tif)
    Column B contains the name one of five counties associated with the file (County-A, County-B, etc.)

    All files from column A are in the same folder (Ex. C:\myTIFFS)
    Named folders to be sorted into already exist as subfolders (Ex. C:\myTIFFS\County-A\, C:\myTIFFS\County-B\, etc.)

    How can I get Excel to sift through row by row and sort the files into folders based upon their Column B value?

    I appreciate any help!

    Take care,
    Jeremiah
    Last edited by jlharrin; 02-08-2016 at 03:25 PM. Reason: clarification

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Copying/moving files to a pre-exsiting sub-folder based upon column attribute

    The easiest way is to put this macro into a workbook, and save the workbook in the same folder as the files named in column A:

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    02-08-2016
    Location
    USA
    MS-Off Ver
    2010
    Posts
    2

    Re: Copying/moving files to a pre-exsiting sub-folder based upon column attribute

    Thank you for the reply!

+ 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] Creating new folder, copying files and renaming files in folder
    By LionelNZ in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-24-2015, 04:18 PM
  2. [SOLVED] Change Read Only attribute on files in a folder
    By VBA FTW in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-05-2013, 09:55 AM
  3. copying data from excel files in a source folder to target folder
    By Javed07 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2013, 04:27 PM
  4. [SOLVED] Moving files from folder based on the excel data
    By WT2008 in forum Excel General
    Replies: 9
    Last Post: 06-22-2012, 11:48 PM
  5. Moving files folder to folder using macro.
    By azureriders in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-21-2011, 01:04 AM
  6. rename all the files in a folder based the names given in column A
    By aravindhan_31 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2008, 05:30 AM
  7. Moving all but the newest files from one folder to an Archive folder.
    By Zaphius in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-29-2007, 11:48 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