+ Reply to Thread
Results 1 to 3 of 3

Struggling with macro to rename file using current date

  1. #1
    Registered User
    Join Date
    08-02-2006
    Posts
    25

    Smile Struggling with macro to rename file using current date

    Hello all,

    You have been so helpful in the past and my appreciation to all. I'm having some difficulty renaming an exising .csv file with the current system time stamp and changing it to a .xls file. I have this snippet of code that doesn't seem to be working properly:

    Please Login or Register  to view this content.
    When I add this to the module the () after Date dissapear and I get a yellow warning highlight. I'm not really sure why.

    I plan on moving this renamed file using the following code:

    Please Login or Register  to view this content.
    Any ideas? So in review, I need to rename a file to the current system time then move it to an existing subdirectory called "Archive" in the same directory. At some point I would like to repeat this renaming and moving 4 times (4 files). How should I build a loop to do this?
    Last edited by ST4RCUTTER; 01-11-2007 at 12:23 PM.

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Think you only need to drop () and replace
    Date()
    by
    Date
    HTH
    Carim


    Top Excel Links

  3. #3
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Glad it fixed your problem ...

+ 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