+ Reply to Thread
Results 1 to 3 of 3

name of a chart object

  1. #1
    Registered User
    Join Date
    11-05-2010
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    59

    name of a chart object

    When I want to perforrm certain action on a chart using vba, I need to know the name of the chart, e.g. "chart 7".
    Is there any way to get the name/rename the chart quickly?
    atm i record a macro when i perfrom action on the chart and then find out the name of the chart in the vba code.

    thanks

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: name of a chart object

    Hi yellowpower,
    I think this one is from Tom Schreiner
    Please Login or Register  to view this content.
    hope it helps
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: name of a chart object

    Hello,

    you can also give your charts meaningful names instead of the default name Excel assigns. Click outside of the chart, then hold down the Ctrl key and click the chart. Now you see "Chart 1" (or similar) in the Name Box above cell A1. Change the name in the Name Box to something more meaningful and you can refer to the chart by that name in code.

    For example, if you Ctrl-click the chart and give it the name ABChart, you can then refer to it with

    Please Login or Register  to view this content.
    cheers
    Last edited by teylyn; 12-11-2010 at 05:33 AM.

+ 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