+ Reply to Thread
Results 1 to 3 of 3

My File Rename Macro Always Doesn't Rename the Last Three files in the list

  1. #1
    Registered User
    Join Date
    01-05-2016
    Location
    Chicago
    MS-Off Ver
    IL
    Posts
    13

    My File Rename Macro Always Doesn't Rename the Last Three files in the list

    Hello,

    I've compiled a set of macros to Rename the Files in the specified folder. I have Excel formulas that will adjust the file list to contain the designated filepath.

    My issue is that the macros successfully name change all the files, except for the last three in the last. If I rename 25 files, it will work for 22. If I rename 100 files, it will work for 97.

    Any ideas how to fix this?

    The code and a screenshot of the Excel page is listed below. Thank you very much!

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Attached Images Attached Images
    Last edited by alansidman; 05-02-2016 at 11:29 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,870

    Re: My File Rename Macro Always Doesn't Rename the Last Three files in the list

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (Because you are new to the forum, I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    01-05-2016
    Location
    Chicago
    MS-Off Ver
    IL
    Posts
    13

    Re: My File Rename Macro Always Doesn't Rename the Last Three files in the list

    Thanks, I will make sure to do that going forward.

+ 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] Macro to list files then Rename them
    By boss1982 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-26-2014, 12:38 PM
  2. Rename cell based on file name for multiple files
    By lmolokin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2012, 05:49 PM
  3. Copy files from list and rename
    By uncleslinky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-27-2011, 07:53 AM
  4. Rename Excel files on base of current file name
    By ali84pk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-09-2010, 08:46 AM
  5. How Can The Macro Rename Files When The Original File Name Changes Everday
    By np123345 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-01-2008, 06:59 PM
  6. Want to rename files in Excel using a list
    By runnershane14 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-27-2007, 11:44 AM
  7. [SOLVED] How do you rename Multiple files using text from a cell in the file?
    By RandyR in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2005, 03:05 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