Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default conditional formatting of cells based on result in hidden cell

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" wrote in message
...
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
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
Conditional Formatting Based of Cells Based on Data Entry in anoth Jim Excel Discussion (Misc queries) 3 November 11th 08 11:52 PM
Advanced Conditional Formatting Help Required - Change cell colour based on values of other cells [email protected] Excel Programming 1 February 9th 07 12:24 AM
Conditional formatting of adjacent cells based on text in cell [email protected] Excel Programming 1 August 8th 06 12:20 AM
Can a conditional formatting result affect another cell or cells marseans Excel Worksheet Functions 1 November 23rd 05 06:14 PM
conditional formatting based on another cells formula result kstarkey Excel Discussion (Misc queries) 3 October 5th 05 09:07 PM


All times are GMT +1. The time now is 02:24 AM.

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

About Us

"It's about Microsoft Excel"