+ Reply to Thread
Results 1 to 6 of 6

Store Chart Attribute in Chart Object

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    12

    Store Chart Attribute in Chart Object

    I have a large number of charts in a workbook (and charts will be created and deleted via VBA code). They are all in one of two mutually exclusive categories, say A and B. I wish to test in VBA modules which category each chart is in. Where can I store this information?

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Store Chart Attribute in Chart Object

    You may simply prefix chart name with A or B?
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Registered User
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Store Chart Attribute in Chart Object

    I agree that changing the name would typically be a good solution; however, I was wondering whether there was a "spare" property I could use. The reason for this is that I am updating a complex addin which was written in 1999 and updated by many individuals since. It currently uses both .name and .parent.name for other reasons.

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Store Chart Attribute in Chart Object

    If chart is embedded you may use AlternativeText property of parent shape:
    Please Login or Register  to view this content.
    or perhaps you may store value in chart's PageSetup properties?

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

    Re: Store Chart Attribute in Chart Object

    in addition to Izandol's suggestion there is the Title property

    Please Login or Register  to view this content.
    Or you could add a shape within the chartobject, hide it and simple use the text property
    Cheers
    Andy
    www.andypope.info

  6. #6
    Registered User
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Store Chart Attribute in Chart Object

    Many thanks; I've decided to go with the the alternative text option.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 11-20-2012, 05:14 AM
  2. [SOLVED] Change chart attribute when chart is grouped
    By skysurfer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-16-2012, 02:10 AM
  3. Chart is invisible but Visible attribute is TRUE
    By 6StringJazzer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-16-2011, 02:46 PM
  4. [SOLVED] Cannot Activate Chart Area in Chart. Chart Object Failed
    By ahperez@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2006, 09:45 PM
  5. [SOLVED] How can I store individual chart settings
    By lschuh in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-11-2005, 01:05 PM

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