+ Reply to Thread
Results 1 to 2 of 2

Previous tab sheet name copied into new tab.

  1. #1
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    Previous tab sheet name copied into new tab.

    Hello all,

    Can the below formula be made to show the previous sheets name in a workbook.

    For example in my workbook the sheet tabs are 01.07.09 - 02.07.09. Is there a way if I right click on tab 02.07.09 and copy it into the same workbook giving me tab 02.07.09 (2) that a cell in the copied workbook will show the previous tab name.

    =MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)
    I need to use this as a reference for a formula I'm using in creating a running balance.

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Previous tab sheet name copied into new tab.

    My solution would be to define a very simple User Defined Function like:

    =GivePrevSheetName()

    Now it can be used e.g. =INDIRECT(GivePrevSheetName()&"!$A$2")

    The code for this function is:
    Please Login or Register  to view this content.
    Last edited by rwgrietveld; 06-24-2009 at 05:20 AM.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

+ 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