+ Reply to Thread
Results 1 to 2 of 2

Move Files Based On date in Name

  1. #1
    Forum Contributor
    Join Date
    02-20-2007
    MS-Off Ver
    2003 & 2007
    Posts
    299

    Move Files Based On date in Name

    I'm looking for a macro that will move files from one folder to another based on the date in the name. For example, in my "SourceFolder" I will have files called "xxx-091009" and "xxx-091509". I need the 091009 version moved to my "DestinFolder". I would need this done for lots of files in the "SourceFolder". The file names will always be text, dash, 6 digit date. I used xxx to represent text.

    I have code that lets me pick source and destin folders. Don't know how to move the files based on that condition.

    Code to select folders (uses function below)
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    03-25-2008
    MS-Off Ver
    Excel, Outlook, Word 2007/2003
    Posts
    245

    Re: Move Files Based On date in Name

    You could try something like this (go through your code with F8 to see if it does what it must do and use your mousecursor to see the results of myfile, sourcepath, ... etc) :
    Please Login or Register  to view this content.
    Charlize

+ 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