Q
quarterhours
I have two worksheets with similar data. In fact they are almos
identical. I would like to use a third worksheet to show the cell
which are equal as yellow and those which are different as red.
I have made an attempt at writing it, and have searched the forums, bu
can't find anyone trying to do this.
Here the cell formula in 'sheet3'!A1(copied to the whole sheet):
=if('sheet1'!a1='sheet2'!a1,setColor('sheet3'!a1,1),setColor('sheet3'!a1,3))
Here is my code for setColor():
Function setColor(R As Range, C As Integer)
For Each X In R
X.Interior.ColorIndex = C
Next
End Functio
identical. I would like to use a third worksheet to show the cell
which are equal as yellow and those which are different as red.
I have made an attempt at writing it, and have searched the forums, bu
can't find anyone trying to do this.
Here the cell formula in 'sheet3'!A1(copied to the whole sheet):
=if('sheet1'!a1='sheet2'!a1,setColor('sheet3'!a1,1),setColor('sheet3'!a1,3))
Here is my code for setColor():
Function setColor(R As Range, C As Integer)
For Each X In R
X.Interior.ColorIndex = C
Next
End Functio