+ Reply to Thread
Results 1 to 7 of 7

Displaying The Active Sheet Name In A Cell ...

  1. #1
    Forum Contributor
    Join Date
    07-02-2006
    Location
    Love City, USA
    Posts
    183

    Question Displaying The Active Sheet Name In A Cell ...

    Hi, Yes, I hope this is a simple question..

    I need to display the current active sheet's name in a cell (B12)...

    Any formulas for this? Thanks

  2. #2
    Forum Contributor
    Join Date
    12-12-2005
    Posts
    667
    When a change is made in one page, this will update:
    Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
    Worksheets("Sheet1").Cells(2, 12) = ActiveSheet.Name
    End Sub
    This macro has to be placed in ThisWorkbook.
    Best regards,

    Ray

  3. #3
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    If you need a formula to read your worksheet tab ...
    Please Login or Register  to view this content.
    HTH
    Carim


    Top Excel Links

  4. #4
    Forum Contributor
    Join Date
    07-02-2006
    Location
    Love City, USA
    Posts
    183
    Hello Carim and Ray, Need to ask a few questions:

    I didn't mention but I need this Cell to update each time I create a new
    sheet (Receipt) to represent the tab name which I am labeling 00001 and so on.
    I am trying to create a way to automatically increase the Receipt Number
    each time I create a new Receipt (Sheet). The Receipts Numbers to be
    updated are in cell L3.

    This is why I believe a cell formula will work better than an actual Macro.

    Carim The formula you presented only return the text formula itself. I am
    assuming where you have 'filename' you mean the path of the workbook?
    I am lost here, please help.. The workbook Name Is 'Universal Receipt' the
    opening sheet is '00001'... Thanks for any help on this..

    Ray if i use a macro, would it be able to update this cell each time a new
    sheet (receipt) is created? thanks for any info here...
    Last edited by Mhz; 02-25-2007 at 04:34 AM.

  5. #5
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Save your workbook once ... for the formula to be effective ...

  6. #6
    Forum Contributor
    Join Date
    07-02-2006
    Location
    Love City, USA
    Posts
    183

    Thumbs up Can't Thank You Enough!

    What a Blessing You Are! Thanks Very Much, You Saved Me Quite a Lot
    of Time.. Thanks Carim.. That Works Great For Me Now..

    Thanks To You also Ray...

  7. #7
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    You are welcome ...

    Very glad to see it is a big relief for you to have fixed your problem ...

    Thanks a lot for your kind feedback ...

+ 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