+ Reply to Thread
Results 1 to 7 of 7

changing series color within a chart

  1. #1
    Registered User
    Join Date
    05-22-2008
    Posts
    22

    changing series color within a chart

    Hi Masters!

    Once again I need a bit of support. I'd like to change the colors of certain dataseries within a chart. The user might write into a cell the some values (i.e. "1" for blue, "2" for red, "3" for green....) and this color would be applied to the corresponding series. Any hint by using VBA?

    Thx in advance.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,097
    You have not supplied much information on how the colour is related to the number or which series in a chart.

    You can get the code for changing series colour by using the macro recorder.

    If you need more help post an example with more details on how the number, colours and series relate.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    11-05-2007
    Location
    Pune, India
    Posts
    51

    Hope the spreadsheet helps!!!

    Quote Originally Posted by lmigarci
    Hi Masters!

    Once again I need a bit of support. I'd like to change the colors of certain dataseries within a chart. The user might write into a cell the some values (i.e. "1" for blue, "2" for red, "3" for green....) and this color would be applied to the corresponding series. Any hint by using VBA?

    Thx in advance.
    I think this is what you are looking for. See attachment.
    Attached Files Attached Files
    Thanks!
    Vikas Bhandari
    http://excelnoob.blogspot.com

  4. #4
    Registered User
    Join Date
    05-22-2008
    Posts
    22
    Here an example that might clarify the question.

    Thank you.
    Attached Files Attached Files

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,097
    I can not seem to down load that file.

    Can try attaching a zipped version of the file.

    If vikasbhandari's post does not solve you problem can you explain why.

  6. #6
    Registered User
    Join Date
    05-22-2008
    Posts
    22
    Thank you for the file Vikasbhandari. I'm trying to find out how to apply it to my example since it's a bit different than yours, but anyway it helped!

    Andy, I could attach again the file if I can't go any forward following vikasbhandari's code.

    Thx.

  7. #7
    Registered User
    Join Date
    11-05-2007
    Location
    Pune, India
    Posts
    51
    Quote Originally Posted by lmigarci
    Thank you for the file Vikasbhandari. I'm trying to find out how to apply it to my example since it's a bit different than yours, but anyway it helped!

    Andy, I could attach again the file if I can't go any forward following vikasbhandari's code.

    Thx.
    Glad I was able to help

+ 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