+ Reply to Thread
Results 1 to 3 of 3

Rename Tab and Format Name same as cell value

  1. #1
    Forum Contributor
    Join Date
    09-25-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    152

    Rename Tab and Format Name same as cell value

    I am trying to copy the active sheet (that acts as a template) and create a new sheet that is renamed based on a cell value.
    The code I currently am using works except that it drops the first few zero's from the name.
    For example: The cell value equals 00010, when I copy and rename the tab, I get 10. I would really like to keep the formatting the same.
    The formatting for the cell is for zip code.
    Any advice?
    Thanks

    Here's my code:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Rename Tab and Format Name same as cell value

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Valued Forum Contributor
    Join Date
    10-05-2014
    Location
    Regina, SK Canada
    MS-Off Ver
    Excel for Mac 11
    Posts
    330

    Re: Rename Tab and Format Name same as cell value

    This will work more directly and always give the same text as displayed in the cell A12.

    Please Login or Register  to view this content.

    Hope this helps.
    Last edited by StuCram; 06-06-2015 at 10:54 AM. Reason: Adjusted cell name

+ 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] Rename Tab Based on Cell Format
    By Chad Bateman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-26-2015, 10:25 PM
  2. [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
  3. Replies: 4
    Last Post: 08-16-2013, 04:10 AM
  4. Rename Files in Folder - Change Date Format
    By karma4910 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-24-2011, 05:24 PM
  5. Change date format inside rename formula
    By BLopes in forum Excel General
    Replies: 2
    Last Post: 06-23-2010, 10:44 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