+ Reply to Thread
Results 1 to 6 of 6

Change colour of chart series

  1. #1
    Registered User
    Join Date
    01-04-2010
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003
    Posts
    16

    Change colour of chart series

    hey

    I'm attempting to write a code that will change the colour of a series in a chart based on the name of each series.

    i.e. I have Roads, Water and Rail as three of my series names. can i somehow assign the colours yellow, blue and red to these series using macro code.

    Thanks Heaps
    Last edited by downunderthunder; 01-06-2010 at 09:26 PM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Change colour of chart series

    Perhaps this can be a start you can adapt to your workbook. This assumes a chart object in the worksheet as opposed to a Chart Sheet.
    Please Login or Register  to view this content.
    You could run the code by using the worksheet change event to call it. Thus, by entering numeric values in cells, automatically change the color. See cells I1:I3 in the attached.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    01-04-2010
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Change colour of chart series

    Hi

    This is not quite what I'm looking for.

    I have applied the following code to change the colours on pie charts:

    Please Login or Register  to view this content.

    I would like to apply somethin similar to a 'Stacked Area' Chart

    Cheers

    DUT

    p.s. sorry I don't know how to add specific windows in my message for the code
    Last edited by downunderthunder; 01-06-2010 at 01:19 AM.

  4. #4
    Registered User
    Join Date
    01-04-2010
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Change colour of chart series

    Hey

    Sorry I'm new to this forum. I think its fixed now. Could someone please help me with this problem

    Cheers

    DUT

  5. #5
    Registered User
    Join Date
    01-04-2010
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Change colour of chart series

    Bump no response

  6. #6
    Registered User
    Join Date
    01-04-2010
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Change colour of chart series

    Solved Myself

    Please Login or Register  to view this content.

+ 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