+ Reply to Thread
Results 1 to 6 of 6

Auto naming tabs based on cell values

  1. #1
    Registered User
    Join Date
    01-14-2023
    Location
    Queens, NY
    MS-Off Ver
    2016
    Posts
    15

    Auto naming tabs based on cell values

    Hi,

    I have a worksheet with dates in cells A3-F3 and the worksheet as 10 tabs.
    How can I have Tabs 4-9 be auto named from the dates in A3-F3?

    Thank you

  2. #2
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,259

    Re: Auto naming tabs based on cell values

    Assuming that the A3:F3 range is in the first sheet from the left:
    Please Login or Register  to view this content.
    Artik

  3. #3
    Registered User
    Join Date
    01-14-2023
    Location
    Queens, NY
    MS-Off Ver
    2016
    Posts
    15

    Re: Auto naming tabs based on cell values

    Hello Again,

    I am still trying to get this figured out, as I could not get the suggestion from Artik to work. Maybe it will be easier uploading the sheet so you can see it.
    On the "data cell" tab, I only change the date in cell A3 each week and it auto fills the rest of the week for me in Row 3 B-G.
    What I would like, is whenever I change the date in cell A3, it will change the 6 tab names on the bottom to reflect the revised dates in A3-G3.
    Is this possible? Thank you in advance for taking the time to try and help me
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,259

    Re: Auto naming tabs based on cell values

    Try it:
    Please Login or Register  to view this content.
    Attention, the code is sensitive to the language version. In the Polish version, I will get the name "pon._gru04" instead of "Mon_Dec04" for the first changed sheet.

    Artik

  5. #5
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Hi, try this !


    According to the attachment whatever the language version a VBA demonstration for starters :

    PHP Code: 
    Sub Demo1()
        For 
    C% = 1 To 6
            Sheets
    (3).Name Sheet1.Evaluate("TEXT(" Cells(3C).Address ",""[$-409]ddd""""_""""mmmdd"")")
        
    Next
    End Sub 
    ► Do you like it ? ► So thanks to click on bottom left star icon « Add Reputation » !

  6. #6
    Registered User
    Join Date
    01-14-2023
    Location
    Queens, NY
    MS-Off Ver
    2016
    Posts
    15

    Re: Hi, try this !

    Big Thank you to Artik & Marc. Your guys were a big help and problem solved !!

+ 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] Auto Add Row From Main Tab To Other Tabs Based On Cell Value
    By zunebuggy65 in forum Excel General
    Replies: 3
    Last Post: 09-22-2022, 10:27 AM
  2. Automatically naming and renaming tabs based on changing cell values
    By rfmckay in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-30-2021, 12:29 PM
  3. Auto naming tabs with cell data via VBA not working
    By HAGTAGL in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2018, 08:38 AM
  4. Auto Naming tabs
    By Flaps74 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-26-2013, 01:17 AM
  5. [SOLVED] Auto naming tabs in a workbook
    By cgmwt in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-05-2013, 02:36 AM
  6. Auto-naming tabs in a workbook
    By Glio in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-12-2008, 05:42 AM
  7. Naming worksheets based on cell values
    By F6Hawk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-03-2007, 04:31 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