Consulting

Results 1 to 4 of 4

Thread: Solved: changing plot area of chart to have gradient look

  1. #1

    Solved: changing plot area of chart to have gradient look

    hi all

    just wondered if anyone new the code to change the activechart.plotarea to a gradient setting

    and where i could find the codes for each type of gradient

    much appreciated

    mark

  2. #2
    VBAX Master
    Joined
    Jun 2007
    Location
    East Sussex
    Posts
    1,110
    Location
    What kind of gradient? One colour, two colour or preset? Look up the ChartFillFormat object in Help for more details.
    Regards,
    Rory

    Microsoft MVP - Excel

  3. #3
    cheers rory, that's wicked helpfull, i was thinking it was plotarea.gradient !! so couldn't find the right object in the help files,

    still do you know where i can find a list of the colour codes, so i know which numbers = which colours

    regs
    mark

  4. #4
    for anyone else how has been following this thread heres the code i've used to achieve the gradient effect on a chart:

    With Charts("name of chart").PlotArea.Fill
    .Visible = True
    .ForeColor.SchemeColor = 37
    .BackColor.SchemeColor = 17
    .TwoColorGradient Style:=msoGradientHorizontal, variant:=1
    End With

    i looked up the colour palette at this website:

    http://www.geocities.com/davemcritchie/excel/colors.htm

    case closed!!

    cheers rory,

    regards
    mark

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •