ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Color Code (https://www.excelbanter.com/excel-programming/282901-color-code.html)

Ali[_3_]

Color Code
 
If the cell is a value turn red if its a formula turn the
cell blue.

Thanks in advance for your help.

Tom Ogilvy

Color Code
 
On Error Resume Next
cells.SpecialCells(xlformulas).Interior.ColorIndex = 8 ' or 5 for dark
blue
cells.SpecialCells(xlConstants).Interior.ColorInde x = 3
On Error goto 0
--
Regards,
Tom Ogilvy



"Ali" wrote in message
...
If the cell is a value turn red if its a formula turn the
cell blue.

Thanks in advance for your help.




Ali[_3_]

Color Code
 
Thank Tom!

-----Original Message-----
On Error Resume Next
cells.SpecialCells(xlformulas).Interior.ColorInde x =

8 ' or 5 for dark
blue
cells.SpecialCells(xlConstants).Interior.ColorInd ex = 3
On Error goto 0
--
Regards,
Tom Ogilvy



"Ali" wrote in

message
...
If the cell is a value turn red if its a formula turn

the
cell blue.

Thanks in advance for your help.



.



All times are GMT +1. The time now is 12:08 AM.

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