+ Reply to Thread
Results 1 to 6 of 6

Inserting different worksheet names in cells of one specific worksheet.

  1. #1
    Registered User
    Join Date
    01-31-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    3

    Inserting different worksheet names in cells of one specific worksheet.

    This is likely a very difficult one. I have read many posts regarding putting the name of a worksheet on a cell of the same worksheet, but nothing like I am looking for. Essentially, I am trying to build an index on 1 worksheet that would list the names of the other worksheet I want part of the index. The easiest way would be to type in all the names of the worksheets I want, but anyone can do this.

    Has anyone attempted this before?
    Last edited by lizot; 02-05-2013 at 08:35 PM.

  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
    52,936

    Re: Inserting different worksheet names in cells of one specific worksheet.

    Hi Lizot and welcome to the forum

    If you are trying to get a list of all sheet names onto 1 sheet, try this (I havnt used 2003 for a while, so im a little rusty as to where the commands are)...

    1. go into names - define name
    2. under "refers to" at the bottom of the window, enter this...
    =REPLACE(GET.WORKBOOK(1),1,FIND("]",GET.WORKBOOK(1)),"")
    3. selct OK
    4. In an empty column on the sheet you want the names, enter this, copied down...
    =IFERROR(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
    Registered User
    Join Date
    01-31-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Inserting different worksheet names in cells of one specific worksheet.

    Haven't been able to make the function work. Also if it did work it would give me the list of all the sheets which is not what I am looking for. Only those I want. I expect the only solution will be to use the
    =RIGHT(CELL("filename",A1),LEN(CELL("filename",A1))-FIND("]",CELL("filename",A1)))
    and then from the sheet where I want the index built, to point to each one of the values captured. Can take some time, but it will work. There may be another way to build the index, but I just cannot think of it.

  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
    52,936

    Re: Inserting different worksheet names in cells of one specific worksheet.

    Perhaps if you uploaded a sample workbook, showing what you have, what you want, and how you arrived at that, it might be easier to help you?

    Im thinking that indirect() might also be something you could try

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Inserting different worksheet names in cells of one specific worksheet.

    Or just copy paste the code provided in the below link by just adding a sheet called INDEX.

    Refer the below link for details:-

    http://www.ozgrid.com/VBA/sheet-index.htm


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  6. #6
    Registered User
    Join Date
    01-31-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Inserting different worksheet names in cells of one specific worksheet.

    Thanks for both your inputs. I have learned a few more things in Excel. I ended up doing it the old fashion way because I did not have that many sheets to deal with and they would not have to be changed. Given that index I wanted was selective in nature would have required for me to ask way too many questions. Still this allowed me to look at other ways of doing indexing. The indirect function was also an eye openner. Thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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