+ Reply to Thread
Results 1 to 5 of 5

Automatically insert chart name as chart title

  1. #1
    Registered User
    Join Date
    05-15-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    7

    Automatically insert chart name as chart title

    I have a chart of master data set as its own sheet, which I'm about to start copying out to show specific series.

    What I would like to do is have the chart title pick up the chart (Sheet) name automatically, so that I don't have to rename them all.

    I've seen a way to return the sheet name when it's an object on a sheet, but not when it's a sheet in it's own right.

    I have also found a method using VBA, but wonder whether there is a simpler route without the need for script?

    Thanks in advance

    J

  2. #2
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: Automatically insert chart name as chart title

    Assuming that the chart lives in a Worksheet and not a chart sheet:

    In a cell in the worksheet, enter this formula

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

    Select the chart title, click into the formula bar, enter a = sign and then click the cell with the formula.

    Now you can rename the sheet and the title of the chart will reflect the new sheet name.

    See attached.

    Note that the formula above will only work if the workbook has been saved, i.e. it will not work on a new, unsaved file.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-15-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Automatically insert chart name as chart title

    Thanks for the reply, and apologies for the poor description...

    It is a chart sheet, not inserted in a worksheet.

    Is there another option?

  4. #4
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: Automatically insert chart name as chart title

    Not without VBA, no, because there is no way to store data in a chart sheet. Maybe you can re-think and use a Worksheet after all? Hide all unused rows and columns, format the remainder with a gray fill and it will look very much like a chart sheet.

  5. #5
    Registered User
    Join Date
    05-15-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Automatically insert chart name as chart title

    I'll give it a go, if not I'll revert back to using VBA...

    Thanks for your help

+ 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