Hi, i am new to this board. i have been searching online and cannot seem to find much help around what i am trying to do.
i am looking to compare two sheets in one workbook. for example, if sheet 1 row 1 matches a row in sheet 2 then highlight it red if not leave blank. i tried:
Sub Test_Sheet()
Dim r As Range
Dim s As Range
Set s = Sheets("Already Billed").Columns(1)
For Each r In ActiveSheet.UsedRange.Rows
If Not (s.Find(r.Cells(1, 1).Value) Is Nothing) Then
r.Interior.ColorIndex = 3
End If
Next r
End Sub
but if i change the data in column 3 it does not register as the above is only looking in column 1 but i need the whole row to be check.
can someone help
thanks
i am looking to compare two sheets in one workbook. for example, if sheet 1 row 1 matches a row in sheet 2 then highlight it red if not leave blank. i tried:
Sub Test_Sheet()
Dim r As Range
Dim s As Range
Set s = Sheets("Already Billed").Columns(1)
For Each r In ActiveSheet.UsedRange.Rows
If Not (s.Find(r.Cells(1, 1).Value) Is Nothing) Then
r.Interior.ColorIndex = 3
End If
Next r
End Sub
but if i change the data in column 3 it does not register as the above is only looking in column 1 but i need the whole row to be check.
can someone help
thanks