+ Reply to Thread
Results 1 to 4 of 4

Need to Name Cells on Multiple Sheets According to Tab Name

  1. #1
    Registered User
    Join Date
    10-17-2017
    Location
    chciago
    MS-Off Ver
    2013
    Posts
    29

    Need to Name Cells on Multiple Sheets According to Tab Name

    I have a large amount of worksheets that can be accessed via a summary sheet that used to use the HYPERLINK function to hyperlink to the proper tab.

    The problem at hand is that the named cells where created by using the original worksheet name and therefore I could create hyperlinks by simply pulling the worksheet name. Now the named cell's and the Worksheet name which they rely on have become disconnected. Is there any way to go through each worksheet in my workbook and give a particular cell (w1) the name of my worksheet? That way when the worksheet name changes I can rerun this macro and all named cells will be updated. Is this possible?

    the logic I am looking for in leymans terms is:

    For each worksheet in my workbook, If the worksheet name does not equal "Summary" Then
    I want to give cell w1 the same name as the worksheet's name

    Thanks in advanced

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Need to Name Cells on Multiple Sheets According to Tab Name

    Not sure this really answers your question, but this suggestion will create a list of sheet names and give each a hyperlink to cell A1 on each sheet. As you add/delete/rename sheets, this will update the list (it is not automatic tough)

    Create a range name (I called mine Sheetnames)
    put this in the Refers to: =REPLACE(GET.WORKBOOK(1),1,FIND("]",GET.WORKBOOK(1)),"")
    To get a list of sheet names, put this in a cell and copy down (started in A2)...
    =IFERROR(INDEX(Sheetnames,ROWS($A$2:A2)),"")

    If you want to be able to click the cell and go to that worksheet, change that formula to this...
    =IFERROR(HYPERLINK("#"&"'"&INDEX(Sheetnames,ROWS($A$2:A2))&"'!A1",INDEX(Sheetnames,ROWS($A$2:A2))),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,052

    Re: Need to Name Cells on Multiple Sheets According to Tab Name

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Need to Name Cells on Multiple Sheets According to Tab Name

    Thanks for the feedback

+ 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. Formula to sum cells across multiple sheets or future sheets
    By dLhx in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-13-2017, 02:46 PM
  2. Multiple cells, multiple sheets, multiple criteria matching
    By Drudnits1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-17-2014, 12:12 PM
  3. Replies: 3
    Last Post: 06-20-2014, 05:49 AM
  4. [SOLVED] Macro to copy cells from multiple sheets in workbook to multiple sheets in other workbook
    By KeithMale in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2013, 05:37 PM
  5. Compiling multiple ranges of cells from multiple sheets into one grand table ?
    By teacher_rob in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2012, 11:42 AM
  6. Variables to multiple cells on multiple sheets
    By BoBoCoDeR in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2012, 05:02 PM
  7. Copy formulas to adjacent columns - multiple cells and multiple sheets
    By swanseaexcel in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-12-2011, 06:21 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