+ Reply to Thread
Results 1 to 3 of 3

Thread: Chart name

  1. #1
    Valued Forum Contributor
    Join Date
    08-22-2005
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    267

    Chart name

    Here is an easy one, I guess, for those who know the answer:

    Charts on a worksheet are named Chart1, Chart2, etc. as they are created, and this is the name you must refer to when manupulating them in VBA.
    Is it possible to look up the name of a chart, and if affirmative is it possible to change it?


    NSV

  2. #2
    Andy Pope
    Guest

    Re: Chart name

    Hi,

    Hold the Shift key whilst selecting the chartobject, sizing handles
    shold be white instead of black, and the charts name will appear in the
    Name Box (next to the formula bar). You can then change the charts name
    via the name box.

    With code use,

    Activechart.parent.name = "NewName"

    Cheers
    Andy

    nsv wrote:
    > Here is an easy one, I guess, for those who know the answer:
    >
    > Charts on a worksheet are named Chart1, Chart2, etc. as they are
    > created, and this is the name you must refer to when manupulating them
    > in VBA.
    > Is it possible to look up the name of a chart, and if affirmative is it
    > possible to change it?
    >
    >
    > NSV
    >
    >


    --

    Andy Pope, Microsoft MVP - Excel
    http://www.andypope.info

  3. #3
    Valued Forum Contributor
    Join Date
    08-22-2005
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    267
    Thanks Andy...

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.2.0