Thread: Color Code
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default 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.