+ Reply to Thread
Results 1 to 9 of 9

Rename multiple worksheets

  1. #1
    Registered User
    Join Date
    08-31-2020
    Location
    Round Rock, TX
    MS-Off Ver
    360
    Posts
    4

    Rename multiple worksheets

    Please bear with me if I'm not clear with my question. This is my first post...
    I have a template that each time used, there are 60 tabs that need to be renamed. There need to be twenty named name1.R, name2.R, etc., twenty named name1, name2, etc., and twenty named name1.V, name2.V, etc. I have a setup worksheet that has a list of all the base names. Is there a way I can use that to create a code to rename all? Thanks!

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Rename multiple worksheets

    Possibly...
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-31-2020
    Location
    Round Rock, TX
    MS-Off Ver
    360
    Posts
    4

    Re: Rename multiple worksheets

    This could be the answer, but I'm honestly not sure. So, let me give more specific info.
    I have a sheet named "Setup". On the sheet is a list of the names for the tabs. I do need specific sheets to be named specific names. The first three sheets and the final sheet will never need to be renamed. There may be a much better way to do this, but the attached spreadsheet contains my list of names, as well as which sheet should be named what. I have it set up so that I plug in the part of the name that changes each time and it generates what the tab name should be (either just the name, the name.R or the name.V.
    Sorry if your code will address my question and I'm just not seeing it. Maybe I just need more specific direction in how to apply it. Thanks!
    Attached Files Attached Files
    Last edited by abq_jessica; 08-31-2020 at 04:15 PM. Reason: added attachment

  4. #4
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Rename multiple worksheets

    Try this on a copy of the file...
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-31-2020
    Location
    Round Rock, TX
    MS-Off Ver
    360
    Posts
    4

    Re: Rename multiple worksheets

    Hi, nope! It hits and issues at "Sheets(v(i, 2)).Name = v(i, 1)". Thanks!

  6. #6
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Rename multiple worksheets

    Can you give a better explanation of "hits and issues" ?

  7. #7
    Registered User
    Join Date
    08-31-2020
    Location
    Round Rock, TX
    MS-Off Ver
    360
    Posts
    4
    Sorry, typo. I meant hits an issue (error).

  8. #8
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Rename multiple worksheets

    You can loop through the sheet's code names then rename the sheet accordingly.

    Please Login or Register  to view this content.

  9. #9
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Rename multiple worksheets

    Quote Originally Posted by abq_jessica View Post
    Sorry, typo. I meant hits an issue (error).
    What is the error?

+ 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. Ability to rename multiple files from a path and move and rename to another.
    By X82 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2020, 09:54 PM
  2. [SOLVED] Excel Macro: Rename Multiple Worksheets based on List
    By arnel_10 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-10-2017, 10:02 PM
  3. [SOLVED] Combine multiple worksheets into one with rename
    By damaniam in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-27-2014, 04:32 PM
  4. [SOLVED] VBA to copy multiple worksheets and then rename them
    By rikk1965 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-17-2013, 08:43 PM
  5. [SOLVED] VBA to create multiple worksheets, rename, and insert information all off main sheet ...
    By headstrong2740 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-03-2012, 10:24 AM
  6. Add worksheets and rename
    By eriol in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2012, 06:51 AM
  7. Using VBA to add and rename worksheets?
    By AnthonyWB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2010, 03:28 PM

Tags for this Thread

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