View Single Post
 
Old 11-29-2015, 10:36 AM
JulieS JulieS is offline Windows 7 64bit Office 2013
Expert
 
Join Date: Dec 2011
Location: New England
Posts: 1,693
JulieS will become famous soon enough
Default

Your code ran fine for me but it is changing the background color - not the text color. I'd change the order of the second and third case statements as 100% is greater than zero. The case statement stops at the first true, so it never reaches the 100.

A quick search also turned up:
https://msdn.microsoft.com/en-us/lib.../ff862901.aspx

The FontEx method allows you to use the PJ colors

https://msdn.microsoft.com/en-us/lib.../ff862872.aspx
Reply With Quote