+ Reply to Thread
Results 1 to 3 of 3

VB Code to rename the files in a folder

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to rename the files in a folder

    Hello:

    I need VB Code to rename the files as follows.

    I have lots of csv files in following format stored at C:\Temp\

    InvoiceReview_2018070421183478940
    InvoiceReview_2018070621151240118
    InvoiceReview_2018071021165339396
    InvoiceReview_2018 071321161564426

    Need VB Code to rename to as follows:

    InvoiceReview_2018-07-04-2118-3478940
    InvoiceReview_2018-07-06-2115-1240118
    InvoiceReview_2018-07-10-2116-5339396
    InvoiceReview_2018 07-13-2116-1564426

    R

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,150

    Re: VB Code to rename the files in a folder

    Try:
    Please Login or Register  to view this content.
    But what about "InvoiceReview_2018 071321161564426" and "InvoiceReview_2018 07-13-2116-1564426" ?
    Is it deliberately or simply a mistake in writing ?
    Last edited by mjr veverka; 07-24-2018 at 08:20 PM.

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to rename the files in a folder

    Hello porucha:

    Thanks a lot, works for me.
    Riz

+ 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. Rename .pdf files in a folder
    By vijanand1279 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-11-2019, 01:11 AM
  2. rename files in folder
    By anilg0001 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-24-2014, 08:22 AM
  3. [SOLVED] Rename Files in A folder
    By pradeepjassal in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-12-2012, 10:36 AM
  4. [SOLVED] Move, Rename all files from a folder
    By kinseld5 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-26-2012, 12:20 PM
  5. rename files in a folder
    By Varun Nair in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-18-2006, 08:25 AM
  6. [SOLVED] rename files in a folder
    By Varun Nair in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-18-2006, 05:05 AM
  7. rename all files in a folder
    By DIBS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-05-2006, 02:50 AM

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