+ Reply to Thread
Results 1 to 2 of 2

Macro to move files from one folder to multiple

Hybrid View

  1. #1
    Registered User
    Join Date
    04-24-2013
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2007
    Posts
    16

    Macro to move files from one folder to multiple

    Hello,

    Please take a look at my requirement and help to make it happen, I have a spreadsheet where File, Folder & Subfolder names are available in Column A, B & C respectively. I want the macro to move the files listed in column A to the respective Folder & Subfolder. Also macro should check if the folder & subfolder are available in the destination path, if it is not then the macro should create them and then move. Addition to this the macro should popup a box for the Source path and destination path so that if the locations are changing then there won’t be an issue.

    Summary:
    1. Prompt for Source location & destination location
    2. Check the spreadsheet and create folder and subfolder accordingly and
    3. Finally move the respective files to those folders.

    Appended is the sample file. Any help is much appreciated. Thank you
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Macro to move files from one folder to multiple

    Good place to start will be the filesystemobject, google that, that has all the things like copy, make folder, folder exists etc.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

+ 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. Replies: 1
    Last Post: 01-28-2019, 06:55 PM
  2. Macro - move files to folder based on list in worksheet
    By uncleslinky in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-03-2015, 05:57 PM
  3. [SOLVED] macro to move all files from one folder to another files
    By catchnanan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-23-2013, 07:37 PM
  4. Replies: 1
    Last Post: 03-12-2013, 04:45 AM
  5. Macro to Move files to the right folder
    By Zan03 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-14-2010, 01:59 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