+ Reply to Thread
Results 1 to 5 of 5

Rename worksheet based on cell value

  1. #1
    Registered User
    Join Date
    07-15-2015
    Location
    Boston
    MS-Off Ver
    13
    Posts
    3

    Rename worksheet based on cell value

    Hello,

    I used the below to rename tabs in my excel file, but it renames every sheet with the specific cell number. I would like to only rename tabs that fall within my start and end sheets. Any help?

    Sub UpdateSheetNames()
    On Error Resume Next

    For Each ws In Worksheets
    ws. name = ws.range("A2").Text
    Next ws

    End Sub

    Thanks,

  2. #2
    Registered User
    Join Date
    07-15-2015
    Location
    South East England
    MS-Off Ver
    2010 & 2013
    Posts
    72

    Re: Rename worksheet based on cell value

    Are the 'Start' and 'End' Sheets called 'Start' and 'End'?
    Are they the only Sheets to exclude?

    Does
    Please Login or Register  to view this content.
    make a difference?

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Rename worksheet based on cell value

    Maybe:
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    07-15-2015
    Location
    Boston
    MS-Off Ver
    13
    Posts
    3

    Re: Rename worksheet based on cell value

    There is a Start and End tab. All of the sheets that fall in between I am looking to rename.

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Rename worksheet based on cell value

    Modified per Post#4.

    Please Login or Register  to view this content.

+ 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. Rename worksheet based on cell with formula
    By JimmyT10 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2015, 08:44 AM
  2. [SOLVED] Rename worksheet tab based on cell value
    By Tritekfire in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-08-2014, 04:22 PM
  3. [SOLVED] Rename Multiple worksheet based on what is contained in one cell in that sheet.
    By pjmc84 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-16-2013, 11:20 AM
  4. Copy worksheet and rename based on cell range
    By jpruffle in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-08-2011, 06:53 AM
  5. Automated worksheet copy, rename based on cell results
    By humboldtguy in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-01-2009, 01:11 AM
  6. Rename worksheet based on content in Cell C3
    By jieyi in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-09-2009, 12:37 PM
  7. VBA to rename worksheet based on cell reference on another worksheet
    By Sandi99 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2008, 01:46 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