+ Reply to Thread
Results 1 to 3 of 3

vba to set line chart series as gradient line with two colours

  1. #1
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    vba to set line chart series as gradient line with two colours

    Hi

    I thought I could assist this poster but embarrassingly have fallen at the first hurdle

    HTML Code: 
    what is the VBA code to set a line chart series as a gradient line with two colours? I can use VBA to set gradient fill to the interior of bar and column charts, and even markers on a line chart, but not the line itself.

    p.s. I created a new post as

    a) its only a sub-set of the poster's problem
    b) I didn't want it to appear that his post had been answered; and
    c) maybe the charting forum is a better place to post

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: vba to set line chart series as gradient line with two colours

    Not sure gradient fill would answer the other post.

    As for the code it is not possible as the object model does not expose the required properties for lines.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: vba to set line chart series as gradient line with two colours

    thanks Andy. The math would have been challenging even if I could figure out the formatting.
    it seems a bit odd that such straightforward formatting can't be done with VBA.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Line chart with fixed 3-color gradient scale
    By jtyoder in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-26-2015, 05:18 AM
  2. [SOLVED] Change series line colour to match marker colours
    By sweep in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-15-2014, 03:04 AM
  3. Replies: 6
    Last Post: 11-26-2012, 05:17 AM
  4. How to create a vertical reference line on a time series line chart
    By Bladebgii in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-23-2012, 10:17 AM
  5. Replies: 4
    Last Post: 03-02-2012, 06:37 PM
  6. Changing line-width in a line chart with a lot of series
    By LJ25 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-13-2011, 11:23 PM
  7. [SOLVED] Gradient of line chart
    By Robert Hargreaves in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-05-2005, 09:40 PM

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