+ Reply to Thread
Results 1 to 7 of 7

Macro or Code to change worksheet name to match a cell.

  1. #1
    Registered User
    Join Date
    09-05-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Macro or Code to change worksheet name to match a cell.

    I am looking for a Macro or Code that will change the worksheet name(42 tabs) to match what is Cell (B1). Please see following conditions:

    1. I want to add the word "Route" to the sheets name and than the Data that is in Cell (B1).
    2. If Cell B1 has a Zero(0) than I dont want to have the worksheet change the name.
    3. I dont want this done to every worksheet in my workbook. There are 4 worksheets that I dont want this done on.

    Joe
    Last edited by Jvollmer33; 09-10-2013 at 11:25 AM.

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

    Re: Macro or Code to change worksheet name to match a cell.

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-05-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Macro or Code to change worksheet name to match a cell.

    Forgot to mention:

    3. I dont want this done to every worksheet in my workbook. There are 4 worksheets that I dont want this done on.

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

    Re: Macro or Code to change worksheet name to match a cell.

    What are the names of the 4 worksheets?

  5. #5
    Registered User
    Join Date
    09-05-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Macro or Code to change worksheet name to match a cell.

    1. DOIS data Instructions
    2. Data
    3. 3999 Data
    4. Volume Sheet

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

    Re: Macro or Code to change worksheet name to match a cell.

    Maybe:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    09-05-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Macro or Code to change worksheet name to match a cell.

    Thank you very much this works great. I do have another question concerning this workbook.

    How can i create a Macro that will print worksheets if Cell (B1) is greater than zero for all sheets except.

    1. DOIS data Instructions
    2. Data
    3. 3999 Data
    4. Volume Sheet

+ 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. VBA code for if function to change cell value based on cells on another worksheet
    By joyhampton in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2013, 11:15 AM
  2. Macro to match 2 values and change a corresponding cell value
    By Tbomb65 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-29-2012, 09:53 PM
  3. [SOLVED] Worksheet change macro on a change in a specific cell
    By dzuspann in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2012, 04:19 PM
  4. code:Run macro on cell change
    By channel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-30-2011, 07:43 AM
  5. [SOLVED] Cell value change to trigger macro (worksheet change event?)
    By Neil Goldwasser in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-10-2006, 10:00 AM

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