+ Reply to Thread
Results 1 to 3 of 3

Chart axis labels not updating properly with VBA

  1. #1
    Registered User
    Join Date
    11-26-2008
    Location
    Michigan, USA
    Posts
    18

    Chart axis labels not updating properly with VBA

    Hello,

    I am working on a workbook where an on-page chart has to be updated depending on what the user wants to see displayed. I've attached an example of this workbook. The user would click one of the colored boxes on the left side of the page, and the means for that component, as well as means from previous periods of time would be displayed on the chart, along with the labels as to which variable they correspond with. The data and labels are being read from the second sheet in the workbook.

    The data is being properly updated, but the labels do not change. If I check the data being read for the chart, it appears to be pulling over the correct labels, but unless I manually confirm the new labels, they are not displayed. The macro I am using works perfectly in Excel 2003, and was working just fine in 2007 until I copied the sheets (which I will need to do for the project I am working on).

    The code is this:

    Please Login or Register  to view this content.

    Is there any way to force an update of the labels? I would think .Refresh would do the trick, but no such luck.

    Thank you for your help.
    Attached Files Attached Files
    Last edited by d3hartm2; 01-05-2009 at 12:09 PM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434
    xl2007 requires you to set the labels for all the series.

    Please Login or Register  to view this content.
    In xl2003 you would get away with just setting the first series.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    11-26-2008
    Location
    Michigan, USA
    Posts
    18
    Andy,

    Thank you very much, that worked perfectly!

+ 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