+ Reply to Thread
Results 1 to 7 of 7

Move Files from current folder to a new subfolders specified in a column

  1. #1
    Registered User
    Join Date
    09-14-2012
    Location
    Brasov
    MS-Off Ver
    Excel 2003
    Posts
    4

    Move Files from current folder to a new subfolders specified in a column

    Hello guys !

    I need a macro and your help !

    Please see attached photo !

    I want to move files that have names from column "A" (only that have STP ,PDF & DXF extensions) from current directory(e.g.: C:/Files) to subfolders (create new folders) based on "F" column (e.g.: C:/Files/Machining or C:/Files/Laser Cutting).
    In column "G", I want a feedback (E.g.: STP & PDF Files moved / Files not found / DXF & PFD Files moved).

    This manual process it a time consumer !

    Thanks in advance !
    Attached Images Attached Images
    Last edited by zEKeBv; 01-11-2021 at 03:43 PM.

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Move Files from current folder to a new subfolder specified in a column

    there are file ext's in col a in your image. you'll obviously need that. this will also be of good help:

    https://www.excelforum.com/tips-and-...and-files.html

    everything you need is in the above link. you can move files 2 ways, and possibly more with this lang. using SHELL (DOS, the cmd prompt) and using XCOPY. or using the NAME statement.

    https://docs.microsoft.com/en-us/off...name-statement

    if you want feedback in a col, that is like a logging system. but you didn't say anything about the info you want in it.

  3. #3
    Registered User
    Join Date
    09-14-2012
    Location
    Brasov
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Move Files from current folder to a new subfolder specified in a column

    You can close the thread. Solved it myself.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Move Files from current folder to a new subfolder specified in a column

    Please share your solution, for the benefit of others.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    09-14-2012
    Location
    Brasov
    MS-Off Ver
    Excel 2003
    Posts
    4

    Thumbs up Re: Move Files from current folder to a new subfolder specified in a column

    Please Login or Register  to view this content.
    Last edited by zEKeBv; 12-31-2020 at 05:31 AM.

  6. #6
    Registered User
    Join Date
    09-14-2012
    Location
    Brasov
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Move Files from current folder to a new subfolder specified in a column

    You can close it now !
    Last edited by zEKeBv; 01-11-2021 at 03:43 PM.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Move Files from current folder to a new subfolders specified in a column

    As you still need help, it seems, I've removed the solved tag for now. Thanks for sharing.

+ 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. Getting list of files from folder and subfolder
    By malcmail in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-20-2017, 01:32 PM
  2. Replies: 12
    Last Post: 03-09-2015, 05:52 PM
  3. find list of files in different subfolder and move them to one folder
    By CobraLAD in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-12-2015, 05:35 AM
  4. [SOLVED] Delete folder and subfolder OKB Files
    By laxmanann in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-11-2014, 02:05 PM
  5. Move Inbox Subfolder Items by Category to Folder
    By ker9 in forum Outlook Programming / VBA / Macros
    Replies: 4
    Last Post: 08-30-2011, 02:03 PM
  6. Files move to a subfolder
    By Jokacave in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-22-2010, 02:13 PM
  7. Return files from a folder without Subfolder
    By EMoe in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-18-2009, 11:33 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