+ Reply to Thread
Results 1 to 2 of 2

VBA to color data points in a Chart based on non-graphed column values

  1. #1
    Registered User
    Join Date
    05-04-2005
    Posts
    8

    VBA to color data points in a Chart based on non-graphed column values

    Instead of data labels, I sometimes go in and manually change data point colors based on values in another column (like yield values that are graphed and color changes based on input material lot number). What is annoying about this is if the data range of the graph is changed, the colors that I put in manually are no longer correct.

    I am trying to figure out a VBA way to color the data points
    Here is my first shot.
    I am stuck though. See the ** comments in the code.

    Please Login or Register  to view this content.
    Last edited by shellig; 05-10-2005 at 09:32 AM.

  2. #2
    Registered User
    Join Date
    05-04-2005
    Posts
    8
    I could probably solve some of the issues by asking the user what column the data is in, what row to start with, and what column to change the colors by.
    I haven't done that because I would like to take the chart as plotted and have it automatically update the colors, even if the range is changed.
    I have not seen anywhere where I can pull out the range column or row to input as variables in a loop. I am sure this can be done but am clueless how!!

    Updated code:
    Please Login or Register  to view this content.
    Thanks for any who have suggestions!
    Shelli

+ 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