Hello Everyone,
(Excel 2003)
I am having a little trouble with using custom RGB Code colors within macros.
Okay, so when I.....
1.) select "Tools" from my Menu Bar
2.) select "Options"
3.) select "Color" tab
4.) select "Modify" button
5.) select "Standard" tab
When in this "Standard" tab it displays a hexagon of color swatches.
At its center you have the color "white"
The next color to the right of the color "white" is a light pink, select it
6.) (after selecting the light pink) go into the "Custom" tab which shows you the RGB Color numbers for that specific light pink color which is (RED 255, GREEN 204, BLUE 255)
If you assign this light pink color to one of your default Excel "Standard Colors" it works fine when you apply this color to a cells background.
When using the following macro, it comes out white?
To test if this code works, I tried a couple of other numbers which work, such as the following macro which produces a "red" background.
Does anyone know why the light pink color code does not work?
Thank You to anyone who reads this.
(Excel 2003)
I am having a little trouble with using custom RGB Code colors within macros.
Okay, so when I.....
1.) select "Tools" from my Menu Bar
2.) select "Options"
3.) select "Color" tab
4.) select "Modify" button
5.) select "Standard" tab
When in this "Standard" tab it displays a hexagon of color swatches.
At its center you have the color "white"
The next color to the right of the color "white" is a light pink, select it
6.) (after selecting the light pink) go into the "Custom" tab which shows you the RGB Color numbers for that specific light pink color which is (RED 255, GREEN 204, BLUE 255)
If you assign this light pink color to one of your default Excel "Standard Colors" it works fine when you apply this color to a cells background.
When using the following macro, it comes out white?
Code:
Sub Color_LightPink
Selection.Interior.Color = RGB(255, 204 255)
End Sub
To test if this code works, I tried a couple of other numbers which work, such as the following macro which produces a "red" background.
Code:
Sub Color_Red
Selection.Interior.Color = RGB(255, 0, 0)
End Sub
Does anyone know why the light pink color code does not work?
Thank You to anyone who reads this.
Last edited: