+ Reply to Thread
Results 1 to 3 of 3

Macro to rename files in ac folder

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,722

    Macro to rename files in ac folder

    I have several files in a Folder

    The names in the Folder are in Col A on sheet "JNL Uploads"

    I would like a macro to rename the files in C:\Sales Journals" with the Prefix in Col B that matches the name in Col A


    I hsave code below to do this, but none of the files are being renames with the prefix in front of the name

    Please Login or Register  to view this content.

    It would be appreciated if someone could kindly amend my code to rename the files
    Attached Files Attached Files
    Last edited by Howardc1001; 03-20-2023 at 10:40 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: Macro to rename files in ac folder

    your file already has the extensions in the cell value there is no need to append it in the code
    you also have a formula to append the prefix to the new name so no need also in the code
    use

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,722

    Re: Macro to rename files in ac folder

    Thanks this works perfectly

+ 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. [SOLVED] Copy Folder then rename files in new folder from list in Excel
    By jimjones1958 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-20-2021, 05:00 PM
  2. Replies: 18
    Last Post: 11-27-2018, 05:25 AM
  3. [SOLVED] VBA macro to open folder and rename files numerically
    By chin67326 in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 11-13-2018, 09:24 AM
  4. Rename multiple files in a folder with a macro - Existing Macro update
    By nobleprince in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-11-2016, 05:39 PM
  5. [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
  6. 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
  7. 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

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