Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have two sheets, A and B. Both sheets once had the same data. On
sheet A, some cells in col CC have been updated. I want to change the background of Sht A, col CC cells if the value doesn't match corresponding cell value in ShtB. I can do this cell by cell... but can't figure out to select all the cells at once. Thank you. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub NoMatch()
Dim iEnd As Integer Dim c As Range Dim rng As Range iEnd = Sheets("A").Range("CC1").End(xlDown).Row Set rng = Sheets("A").Range("CC1:CC" & iEnd) For Each c In rng If c < Sheets("B").Range(c.Address) Then c.Interior.ColorIndex = 6 Next c End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can you conditionally format a whole row based on data in one cel | Excel Discussion (Misc queries) | |||
conditionally format cell in a range, based on value in other rang | Excel Worksheet Functions | |||
how can I conditionally format a cell based on the value in a diff | Excel Discussion (Misc queries) | |||
I'd like to conditionally format a cell based on today's date | Excel Discussion (Misc queries) | |||
Can I conditionally format a line based on a cell value | Excel Discussion (Misc queries) |