Results 1 to 8 of 8

Rename multiple files in a folder with a macro - Existing Macro update

Threaded View

  1. #1
    Registered User
    Join Date
    08-29-2010
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    83

    Rename multiple files in a folder with a macro - Existing Macro update

    Hi,

    My original thread is here:
    http://www.excelforum.com/excel-prog...h-a-macro.html

    I used Bernie Deitrick macro solution. See attached file.

    I have multiple files in a folder and I want to rename them automatically via a macro. I use Excel 2016. Could you please update the macro for the following output:

    BEFORE

    The existing file names are:

    Firstname Surname_SOMETEST.html
    OR
    Firstname Middlename Surname_SOMETEST.html

    AFTER

    I would like the macro to rename the files to:

    Firstname Surname _ Test.html
    OR
    Firstname Middlename Surname_Test.html

    Basically the macro should replace any text after the _ with the word "Test". If there are duplicate files with the same name, the macro should ignore those records.

    Could you please help me with the requirement?

    Thank you,
    Ash
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Rename Multiple PDF files in a folder per the list in Excel spreadsheet
    By vmanil75 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2017, 09:40 AM
  2. [SOLVED] Rename multiple files in a folder with a macro
    By nobleprince in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-24-2016, 09:55 PM
  3. RENAME - Multiple files - Macro or not Macro?
    By heatwave in forum Excel General
    Replies: 1
    Last Post: 04-13-2015, 06:08 AM
  4. Macro to move files from one folder to another but rename duplicates
    By mark_anthony in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-09-2014, 06:56 AM
  5. Macro to open consecutively .TIFF files in 1 folder and rename them?
    By tedikoleva in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-09-2014, 03:28 PM
  6. Replies: 1
    Last Post: 03-12-2013, 04:45 AM
  7. [SOLVED] Rename multiple files in folder
    By MissaLissa in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-17-2013, 04:14 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