Avatar of ExpExchHelp
ExpExchHelpFlag for United States of America

asked on 

Excel colors to graph

Experts:

I would like to apply an Excel color scheme automatically to a graph.    That is, in attached spreadsheet, cells A25:C25 = blue, A26:C26 = yellow, A27:C27=red... I would like to apply the same colors to a graph.

When googling for any existing solution, I came across a spreadsheet (original source:  http://datapigtechnologies.com/blog/index.php/automatically-set-chart-series-colors-to-match-source-cell-colors/) which applies cell colors to the graph; however, underlying data is structured vertically vs. my data is structured horizontally.    Again, please see attached XLS... a picture is worth a 1000 words.

Does anyone know how to modify the existing VBA in order to accomplished the envisioned process?   By the way, I am totally open to a different solution that the one included in the XLS.

Thanks,
EEH
Cell-Colors-Applied-to-Graph.xlsm
VBAMicrosoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
ExpExchHelp
ASKER CERTIFIED SOLUTION
Avatar of Ejgil Hedegaard
Ejgil Hedegaard
Flag of Denmark image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of ExpExchHelp
ExpExchHelp
Flag of United States of America image

ASKER

Awesome!!!!   Works like a charm.   Thank you, Ejgil!
Microsoft Excel
Microsoft Excel

Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.

144K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo