+ Reply to Thread
Results 1 to 5 of 5

macro to rename all sheets in workbook as criteria cells A2 of each sheet

  1. #1
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    macro to rename all sheets in workbook as criteria cells A2 of each sheet

    I have a workbook with a lot of sheets .

    My goal is to rename all sheets based on cell value of cells A2 for each sheet in the workbook.

    That is sheets 1 cells A2 reads GAMMA , then sheet rename gamma, then sheets 2 cell A2 reads alpha then sheet alpha but sometimes some sheets may have same name in cells A2(gamma) then rename gamma_1

    Looking a macro that can perform this tasks

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: macro to rename all sheets in workbook as criteria cells A2 of each sheet

    Please Login or Register  to view this content.
    Last edited by JLGWhiz; 10-13-2019 at 01:12 PM.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: macro to rename all sheets in workbook as criteria cells A2 of each sheet

    This will handle duplicate A2 values and illegal names in A2

    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  4. #4
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Re: macro to rename all sheets in workbook as criteria cells A2 of each sheet

    Thank you both works great as expected
    Last edited by JEAN1972; 10-13-2019 at 02:56 PM. Reason: typo

  5. #5
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: macro to rename all sheets in workbook as criteria cells A2 of each sheet

    Happt to assist. Thanks for the reps. Don't forget to mark the thread as solved.
    Regards, JLG

+ 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 rename sheet as per workbook names
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-07-2019, 02:39 PM
  2. rename sheets at once from 2 cells from a list - Macro
    By squirrellydw in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2015, 03:46 AM
  3. [SOLVED] Copy a sheet, rename it by value in range then export product to new workbook and rename
    By MagicMan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-31-2015, 07:24 PM
  4. Macro to copy the active sheet to new workbook and rename
    By shansakhi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-06-2014, 01:27 AM
  5. Replies: 2
    Last Post: 09-04-2012, 01:19 AM
  6. [SOLVED] Code to create new sheet and rename, regardless of any other sheets in workbook
    By csh8428 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-19-2012, 02:22 PM
  7. Replies: 0
    Last Post: 04-28-2012, 06:06 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