ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   custom color for font color and or background shading color (https://www.excelbanter.com/excel-programming/442271-custom-color-font-color-background-shading-color.html)

Ben[_14_]

custom color for font color and or background shading color
 
Hi all -

Is there a way to change font color and background shading color through
code using RGB? I know in word it can be done through the Fonts/ Border
and Shading option.

Can you share some thoughts?

Thanks in advance,

Ben

JLGWhiz[_2_]

custom color for font color and or background shading color
 
Range("A3").Font.Color = RGB(250, 125, 125)
Range("A3").Interior.Color = RGB(150, 250, 100)

See also: http://www.mvps.org/dmcritchie/excel/colors.htm


"Ben" wrote in message
...
Hi all -

Is there a way to change font color and background shading color through
code using RGB? I know in word it can be done through the Fonts/ Border
and Shading option.

Can you share some thoughts?

Thanks in advance,

Ben




Ben[_14_]

custom color for font color and or background shading color
 
Hi JLGWhiz,

Thanks for your suggestion. It worked very nicely.

Thanks,

Ben


On 5/4/2010 2:27 PM, JLGWhiz wrote:
Range("A3").Font.Color = RGB(250, 125, 125)
Range("A3").Interior.Color = RGB(150, 250, 100)

See also: http://www.mvps.org/dmcritchie/excel/colors.htm


wrote in message
...
Hi all -

Is there a way to change font color and background shading color through
code using RGB? I know in word it can be done through the Fonts/ Border
and Shading option.

Can you share some thoughts?

Thanks in advance,

Ben






All times are GMT +1. The time now is 06:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com