+ Reply to Thread
Results 1 to 4 of 4

Rename files in a folder named using windows explorer

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Rename files in a folder named using windows explorer

    Hi everyone,

    Many of us know we can rename multiple files with windows explorer following the steps here:

    https://support.microsoft.com/en-us/...press%20ENTER.

    I have a folder that already contains many files named using the above way.

    Now I need to delete some files in that folder. Instead of repeating the steps again manually, can I have a VBA macro to help me automatically update the names? For example, if there are 3 files named as: XYZ (1), XYZ (2) and XYZ (3). If XYZ (1) is deleted, I want the remaining two files to be renamed as XYZ (1) and XYZ (2) which reflects a new continuous order.

  2. #2
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: Rename files in a folder named using windows explorer

    Thanks for your great help.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,247

    Re: Rename files in a folder named using windows explorer

    Administrative Note:

    It has been only 10 hours since you last posted. Please do not bump threads until 24 hours have passed, and then only once each day. By bumping the post, you have removed it from the Unanswered Threads filter that many forum members use to find posts that need attention. We are all volunteers here who have lives beyond this forum. While you may be awake and working, this is a world wide forum and others may be playing, sleeping or working and not have the time to look into your issues this minute. Patience is important here. If you have an urgent issue, you may wish to look at paying for help in the Commercial Services sub-forum or hiring a professional consultant in your area. Again, please do not bump threads more often than once in every 24 hours: if you get the help you need today, then great, but you really should not count on it. Thanks for your understanding and patience.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Rename files in a folder named using windows explorer


    Quote Originally Posted by BNCOXUK View Post
    Instead of repeating the steps again manually
    Hi,

    as this is the obvious best option, may be faster than some VBA procedure …

    Anyway elaborate at least how that should work, fill the holes in order there is nothing to guess
    or you are enough confident with your Excel / VBA skills to fit any code a helper may share.

+ 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] Open a folder in Windows Explorer to select a folder
    By fabian_76 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-20-2018, 07:56 PM
  2. Replies: 7
    Last Post: 07-18-2017, 11:28 AM
  3. [SOLVED] Return Folder Path From Windows Explorer Window
    By Justin H2O in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-07-2016, 08:45 AM
  4. Create list of files from windows explorer folder
    By Economakos in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-19-2014, 04:10 PM
  5. Problem opening files from Windows Explorer
    By bt76 in forum Excel General
    Replies: 4
    Last Post: 09-01-2008, 02:49 PM
  6. Excel files won't open from Windows Explorer
    By AnotherEd in forum Excel General
    Replies: 3
    Last Post: 07-20-2006, 05:05 PM
  7. [SOLVED] Embed Folder Treeview Or Windows Explorer On UserForm
    By MDW in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-27-2006, 11:55 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