Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Illinois
    Posts
    552
    Thanks
    0
    Thanked 1 Time in 1 Post

    Name charts in Excel (Excel 2003)

    How do I give a chart in excel a specific "name" so i can call it in a macro? Thanks

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Name charts in Excel (Excel 2003)

    Click once on the chart to select it.
    Activate the Visual Basic Editor.
    Activate the Immediate window.
    Type

    Selection.Parent.Parent.Name = "MyName"

    Press Enter.

    PS You haven't provided feedback to the reply to <post:=736,920>post 736,920</post:>. <img src=/S/sad.gif border=0 alt=sad width=15 height=15>

  3. #3
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: Name charts in Excel (Excel 2003)

    To do it manually, you can also select a cell in the worksheet, then Shift-Click the chart and type a new name in the Name box at the left of the formula bar. Or, if it's a chart sheet, just change the tab name.
    Regards,
    Rory

    Microsoft MVP - Excel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •