PC Review


Reply
Thread Tools Rate Thread

conditional formatting of cells based on result in hidden cell

 
 
Papa Jonah
Guest
Posts: n/a
 
      8th Mar 2010
I have a column (Z) that reflects status for each record (rows). I want to
have conditional formatting based on the content in column AA (which is
hidden - but has the calculations).
I have four options that I need to be able to develop a corresponding color
for for the cells in Z.

My understanding of other code examples that have been posted using Target
is that they don't apply to looking at one cell and formatting a different
cell.

TIA,
Papa J
 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      8th Mar 2010
Depends on how the code is written:

If Target.Column = "A" Then
If Target.Value = 1 Then
Range("B1").Interior.ColorIndex = 2
ElseIf Target.Value = 2 Then
Range("C2").Interior.ColorIndex = 3
Else
Range("D3").Interior.ColorIndex = 4
End If
End If

With the above code placed in a procedure in a code module, the target cell
can be in column A, but the results of the criteria evaluation will be shown
in cells in different columns. However, if you are using the built in
conditional formatting facility, then the results will only apply to the
cell where the format is extablished.



"Papa Jonah" <(E-Mail Removed)> wrote in message
news:423666EA-0789-4BD0-8908-(E-Mail Removed)...
>I have a column (Z) that reflects status for each record (rows). I want to
> have conditional formatting based on the content in column AA (which is
> hidden - but has the calculations).
> I have four options that I need to be able to develop a corresponding
> color
> for for the cells in Z.
>
> My understanding of other code examples that have been posted using Target
> is that they don't apply to looking at one cell and formatting a different
> cell.
>
> TIA,
> Papa J



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting Based of Cells Based on Data Entry in anoth Jim Microsoft Excel Misc 3 11th Nov 2008 11:52 PM
Advanced Conditional Formatting Help Required - Change cell colour based on values of other cells gregglazar@gmail.com Microsoft Excel Programming 1 9th Feb 2007 12:24 AM
Conditional formatting of adjacent cells based on text in cell elderain@gmail.com Microsoft Excel Programming 1 8th Aug 2006 12:20 AM
Can a conditional formatting result affect another cell or cells =?Utf-8?B?bWFyc2VhbnM=?= Microsoft Excel Worksheet Functions 1 23rd Nov 2005 06:14 PM
conditional formatting based on another cells formula result =?Utf-8?B?a3N0YXJrZXk=?= Microsoft Excel Misc 3 5th Oct 2005 09:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:35 AM.