+ Reply to Thread
Results 1 to 2 of 2

Automate moving files around

  1. #1
    Forum Contributor
    Join Date
    04-30-2013
    Location
    arizona
    MS-Off Ver
    365
    Posts
    147

    Automate moving files around

    So I was wondering if there was a good way to automate the task of moving files around.

    I have a lot of scanned documents that I have saved in one folder on my computer. I went through and renamed them
    the same name that the folder which they need to go into has. I was wondering what the best way (if any) to
    automatically move all these files to the correct folders on my computer.
    I don't want to create new folders or write over existing folders. I just want the files to be moved around to the
    correct folder.
    Does anyone know how this can be done?

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Automate moving files around

    Suggest using a macro like

    Please Login or Register  to view this content.
    where current path is in column A and new path in column B.

    An easy way of getting the current paths is to go to windows explorer, select all the files in the folder, hold down the shift key, right click on any of the files, select copy as path and then paste into column A.

    To add the code....

    Open up the VBA editor by hitting ALT F11

    Insert a new module by hitting Insert - Module

    Paste the macro into the empty sheet

    Hit ALT F11 to get back to the worksheet.

    Run the macro by going to tools-macro in Excel 2003 or the view ribbon in Excel 2007/2010.
    Martin

+ 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. Automate moving certain criteria into main categories
    By dgross102 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-03-2013, 03:58 PM
  2. [SOLVED] Can a macro / formula be made to automate data moving to tabs?
    By LDouble3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-21-2012, 06:12 AM
  3. Archiving Files - Creating New Folders and Moving Files
    By mccrimmon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2011, 06:47 AM
  4. Replies: 4
    Last Post: 03-20-2011, 05:52 PM
  5. Automate moving between pages on a pivot table
    By Meryl Miller in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2006, 08:30 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