+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Automatically change the Worksheet tab names with the cell value in each worksheet?

  1. #1
    Registered User
    Join Date
    02-14-2012
    Location
    Kansas City
    MS-Off Ver
    Excel 2007
    Posts
    1

    Question Automatically change the Worksheet tab names with the cell value in each worksheet?

    I am fairly new to macros and have trouble with VBA. I have a file with multiple worksheets. Each worksheet contains the name of a specific location in cell A8. I want this name in cell A8 to be the name on the worksheet tab for each worksheet in my file but do not know how to accomplish this. Is that even possible?

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Automatically change the Worksheet tab names with the cell value in each workshee

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-09-2013
    Location
    Hawthorne, CA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Automatically change the Worksheet tab names with the cell value in each workshee

    Hello Bob Phillips, I am a new member, and I am interested in instituting the same function suggested by RoseMV. How do you apply your code? Is this part of a VBA subroutine or can it be applied as a macro, and if so, how? Your help would be greatly appreciated. By the way, I am using Excel 2007.

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Excel 2007 : Automatically change the Worksheet tab names with the cell value in each

    This is rather an old thread but you could use a code like this perhaps.

    Please Login or Register  to view this content.
    You need to change the range B2 to suit you needs then you right click on the sheet tab select "View Code" and paste this code in the new window that opens.

    Alf

  5. #5
    Registered User
    Join Date
    07-17-2015
    Location
    London
    MS-Off Ver
    10
    Posts
    7

    Re: Excel 2007 : Automatically change the Worksheet tab names with the cell value in each

    What if the cell tha contains the data is too long.
    So for example the Cell i want to use contains the following: ABCD - lots of sill little detail
    I just want the sheet to be named ABCD other sheets contain say EGRGTHY - lots of even more little details. In this case I would just want the data before the - and not a specific number of letters.

    As usual thanks !

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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