jimwal0367
Programmer
Hi,
I have found this code in another posting
Sub Find_Matches()
With Sheets(1)
For Each r In .UsedRange
With r
If .Value <> Sheets(5).Cells(.Row, .Column).Value Then
.Font.Color = vbRed
Sheets(5).Cells(.Row, .Column).Font.Color = vbRed
Else
.Font.Color = vbBlack
Sheets(1).Cells(.Row, .Column).Font.Color = vbBlack
End If
End With
Next
End With
End Sub
Can this code be adapted to compare two sheets on two different workbooks??
Jimwal0367
I have found this code in another posting
Sub Find_Matches()
With Sheets(1)
For Each r In .UsedRange
With r
If .Value <> Sheets(5).Cells(.Row, .Column).Value Then
.Font.Color = vbRed
Sheets(5).Cells(.Row, .Column).Font.Color = vbRed
Else
.Font.Color = vbBlack
Sheets(1).Cells(.Row, .Column).Font.Color = vbBlack
End If
End With
Next
End With
End Sub
Can this code be adapted to compare two sheets on two different workbooks??
Jimwal0367