+ Reply to Thread
Results 1 to 3 of 3

Update Cell text (ie title) based on Worksheet location

  1. #1
    Registered User
    Join Date
    09-26-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    7

    Update Cell text (ie title) based on Worksheet location

    I have a workbook with 75+ sheets. I have a title in cell A2 of each worksheet titled " Exhibit" #. I am looking for a way to automatically fill in the # based upon its location (Worksheet Index?). For example if I add a new worksheet after Exhibit 25, I'd like to have all of the title cell in the subsequent worksheet to update automatically. So the cel that did show Exhibit 26 would now show Exhibit 27. Any help is greatly appreciated.

    I am new to VBA, so a non-vba solution would be great. But I can do a small amounts of VBA, so if the only way to do it with VBA, I am comfortable trying.

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Update Cell text (ie title) based on Worksheet location

    Try this in a sample workbook

    =MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,256)

    you do not have to put the Text "Exhibit" this will get the sheet name.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    09-26-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Update Cell text (ie title) based on Worksheet location

    Thanks for the advice. That was not quite what I was looking for. I am not looking for the cell to reference the worksheet name. I want to use Cell A2 as a title cell for the worksheet. I want each worksheet to be titled "Exhibit" then the # as an example the first worksheet I want to be be titled Exhibit 1, the second Exhibit 2, the third Exhibit 3, etc. With 50+ worksheets it is very time consuming to manually renumber the titles if I add a new worksheet or move the worksheets around within the workbook.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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