ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Cell bg-color (https://www.excelbanter.com/excel-programming/397727-cell-bg-color.html)

bobens_83

Cell bg-color
 
Hi. I'm setting cell background color

Cells(ctr, 4).Interior.Color = RGB(0, 191, 255)

Is there some possibility to write the color definition in different way, eg.
'alice blue' or '#F0F8FF'?

Greetings. P.

Mike H

Cell bg-color
 
you can use

Range("A1").Interior.ColorIndex = 3

A full list of the colorindex numbers can be found here

http://www.geocities.com/davemcritchie/excel/colors.htm

Mike

"bobens_83" wrote:

Hi. I'm setting cell background color

Cells(ctr, 4).Interior.Color = RGB(0, 191, 255)

Is there some possibility to write the color definition in different way, eg.
'alice blue' or '#F0F8FF'?

Greetings. P.



All times are GMT +1. The time now is 06:10 PM.

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