I do not understand the use of RGB color codes. How can I get different shades of blue and green? In what way should I use those codes from 1-255 to get different shades?
In Excel 2003 and earlier, it doesn't what colour you chooes, Excel will map it to the nearest colour in the 56 colour colour palette. You can change any of the 56 colours via Tools>Options>Colors, but you only have a usable palette of 56 colours.
Do you specifically need to use the RGB colour codes? You maybe would be better to use the standard 56 colour pallete that exists in Excel.
You can get a list of these colours by running this code on a blank worksheet:
Code:
Public Sub GetColours()
Dim x As Integer
Application.ScreenUpdating = False
For x = 1 To 56
Cells(x, 1) = x
Cells(x, 2).Interior.ColorIndex = x
Next x
Application.ScreenUpdating = True
End Sub
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.