+ Reply to Thread
Results 1 to 3 of 3

Move, Rename all files from a folder

  1. #1
    Registered User
    Join Date
    01-12-2012
    Location
    Dublin
    MS-Off Ver
    Excel 2010
    Posts
    50

    Move, Rename all files from a folder

    Hi,

    I have a folder which is constantly updated with files every 5 minutes and the naming convention is fairly complex and unnecessary but I cannot change it.

    Basically I need a macro to automatically move all files from this folder 'C:\Test1' to another folder 'C:\Test2', rename the moved files based on most recently added, most recently added being '1.csv' and open up each of these .csv files on a different sheet in an active workbook. After this has completed the files in 'C:\Test2' will be deleted.

    I have been at this for hours and cannot do it so any help is much appreciated.

    Regards,
    David

  2. #2
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: Move, Rename all files from a folder

    See if this does what you want.
    Please Login or Register  to view this content.
    Call Import_Files() using Application.OnTime if you want it to run every 5 minutes.

  3. #3
    Registered User
    Join Date
    01-12-2012
    Location
    Dublin
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: Move, Rename all files from a folder

    Chippy, You hero. Cheers mate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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