+ Reply to Thread
Results 1 to 5 of 5

Find the name of a chart sheet

  1. #1
    Registered User
    Join Date
    01-11-2008
    Posts
    19

    Find the name of a chart sheet

    I have a spreadsheet containing quite a few worksheets with some of them being chart sheets. I have a summary sheet at the front of the spreadsheet that lists the sheets. On this summary page I have the names of the various worksheets automatically populated in the cells using the following

    Please Login or Register  to view this content.
    This way if a sheet's name changes this summary sheet changes also. This works well for normal worksheets but does not work at all for the chart sheets since there are no A1 cells on these sheets. Is there a way to automatically get the name of the chart sheets?

    Shawn

  2. #2
    Registered User
    Join Date
    01-11-2008
    Posts
    19

    Re: Find the name of a chart sheet

    Maybe there is no solution to this. It seems like it would somehow be possible. Frustrating that chart sheets appear to be so different from a regular ol' worksheets.

    Shawn

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,441

    Re: Find the name of a chart sheet

    I think code is the only way to do this. Write your own UDF

    =SheetTabName("Chart1")

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    01-11-2008
    Posts
    19

    Re: Find the name of a chart sheet

    Thanks for the help! That works except if I change the name of the chart sheet the name in the summary sheet does not update automatically. Is there a way to have just this function fire automatically maybe whenever the summary page is viewed?

    I use the names on the summary sheet as links to the various sheets in the workbook. So, if someone double-clicks the name of the chart sheet on the summary sheet that chart sheet becomes active. The way it works now if someone changes the name of the chart sheet and goes back to the summary page the name has not been updated and if double-clicked an error occurs.

    Thanks again,

    Shawn

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,441

    Re: Find the name of a chart sheet

    You can add some code to the worksheets Activate event. Where you can refresh the cells

+ 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