+ Reply to Thread
Results 1 to 4 of 4

Macro to make tab name equal cell content

  1. #1
    Registered User
    Join Date
    03-16-2013
    Location
    USA
    MS-Off Ver
    Excel 2013 2016
    Posts
    14

    Macro to make tab name equal cell content

    A workbook that I use has 58 tabs. On each tab the customer name is on cell B2. I need a macro to make the name of each tab equal the customer name in cell B2. Please help. Note - I dont know much about macros, please provide the steps on how to introduce the macro. THanks in advance for the help!

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Macro to make tab name equal cell content

    Hi,

    Firstly open the VBA editor (Alt+F11), and go to "Insert --> "Module". Then paste the following code:
    Please Login or Register  to view this content.
    To use this macro, go to the "Developer" tab on the Excel 2007 ribbon (this needs to be enabled in Excel Options if you can't see this tab, as it is disabled by default). Under the "Code" group, click on "Macros", then select "RenameSheets" from the list and click on "Options...". In this dialog you will be able to assign a keyboard shortcut to activate your macro. Once you have done this click OK/Close until you are back to the workbook, then press your keyboard shortcut to see the macro work.

    Hope this helps

  3. #3
    Registered User
    Join Date
    03-16-2013
    Location
    USA
    MS-Off Ver
    Excel 2013 2016
    Posts
    14

    Re: Macro to make tab name equal cell content

    Thanks ajryan88. That worked. Appreciate the help.

  4. #4
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Macro to make tab name equal cell content

    No problems!

    Please don't forget to click on the * next to my post to say thanks

    Have a great day

+ 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] formula if cell content doen not equal certain amount of characters
    By Marijke in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-25-2013, 11:19 AM
  2. Make a cell's content invisible by not using Macro
    By CanadaDBA in forum Excel General
    Replies: 1
    Last Post: 01-06-2012, 03:00 PM
  3. Make One Cell Equal a Value in another.
    By beetlegossip in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-16-2010, 07:43 PM
  4. [SOLVED] macro to find cell content in sheets and make sheet active
    By Nigel in forum Excel General
    Replies: 3
    Last Post: 11-18-2005, 05:00 PM
  5. How do I make a cell's contents equal to another cell's contents with macro program?
    By mgmcdevitt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-15-2005, 04:44 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