Code:
Sub CompareString ( )
aStr = ActiveSheet.Range("A1").Value
bStr = ActiveSheet.Range("A2").Value
If StrComp(aStr,bStr) = 0 Then
MsgBox "They match"
Else
MsgBox "They are not the same"
End If
End Sub
my code currently compares the string in cell A1 to the string in A2.
I would like to change the code so that it will compare all of the data in Column A Sheet1, with all of the Data in Column B Sheet2 and the highlight the like values in Sheet1.