+ Reply to Thread
Results 1 to 3 of 3

Cell values translated to color gradients: macro needed

  1. #1
    Registered User
    Join Date
    07-22-2011
    Location
    Springfield, OH
    MS-Off Ver
    Excel 2003
    Posts
    4

    Cell values translated to color gradients: macro needed

    Dear Forum,
    Hello. I am trying to construct a visual indication of loudness across time. Because I am stuck in excel 2003, I have to figure out how to manipulate colors to the extent that I’d like with VBA. If you look at my attached workbook, you’ll see data, a color legend, and two charts, which are identical except for the series' fills. How to get from “Raw Product” to “End Product” with a macro, by specifying color gradients as values in cells (C3:D45 - start color/end color)? In addition, a preceding IF condition will check for an “R” (in which case there will be no area fill at all).

    So far, I have a macro that can change the series into a solid color given cells' values, and I have a macro that can give a series a predetermined gradient already written into the code. I need a macro that will do both at the same time, though.

    Any ideas? Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Cell values translated to color gradients: macro needed

    Quote Originally Posted by DudeHey View Post
    I have a macro that can change the series into a solid color given cells' values, and I have a macro that can give a series a predetermined gradient already written into the code. I need a macro that will do both at the same time, though.

    Any ideas? Thanks.

    Your macros appear to be missing from the workbook. To merge them, we would need to see them.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-22-2011
    Location
    Springfield, OH
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Cell values translated to color gradients: macro needed

    Quote Originally Posted by JBeaucaire View Post
    Your macros appear to be missing from the workbook. To merge them, we would need to see them.

    Hi JBeaucaire,
    Thank you for your response. I apologize for not getting back to you sooner, but am traveling and have limited internet access. Okay, I solved my problem, as I mentioned above. The solution is attached as "Book 1", and here is the code:
    Please Login or Register  to view this content.
    Now, regarding this code, it is set for 43 series on the graph. However, I intend to turn the spreadsheet into autoexpanding chart, such as in the attached spreadsheet "Autoexpanding chart". In other words, there will be an indeterminate number of series on the graph. Any idea how to solve this problem? Thanks for your help and interest.
    Attached Files Attached Files

+ 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