#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Color Code

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

Thanks in advance for your help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
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.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default 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.



.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
color code Shihachi Excel Discussion (Misc queries) 3 January 22nd 10 02:46 PM
Please help me on Color code anil Excel Discussion (Misc queries) 2 March 14th 07 03:01 PM
Color code DHM Excel Worksheet Functions 2 February 7th 07 06:50 PM
How to color automatically color code sums in cells kuroitenpi Charts and Charting in Excel 1 November 29th 06 03:16 AM
Color code Row Daniell Excel Discussion (Misc queries) 1 December 16th 04 11:22 PM


All times are GMT +1. The time now is 05:51 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"