Hello everyone,
It has been a week since I am looking to do a function which highlights all matches between two different sheets.
It compares from a value from the first one to whole column from the second and it highlights the match in the first one.
I am still new to coding in VBA and I got confused how to do it by myself.
So can any one help me doing this, please?
Here is my code until now:
Sub searching ()
LastL = ActiveSheet.UsedRange.Rows.Count
CurrentL = 2
While CurrentL <= LastL
If Worksheets("HP").Range("C" & CurrentL).Value = Worksheets("Client non connectés").Range("B:B").Value Then
Worksheets("Client non connectés").Range("B" & CurrentL).Interior.Color = 65535
End If
CurrentL = CurrentL + 1
'Wend
End sub
It has been a week since I am looking to do a function which highlights all matches between two different sheets.
It compares from a value from the first one to whole column from the second and it highlights the match in the first one.
I am still new to coding in VBA and I got confused how to do it by myself.
So can any one help me doing this, please?
Here is my code until now:
Sub searching ()
LastL = ActiveSheet.UsedRange.Rows.Count
CurrentL = 2
While CurrentL <= LastL
If Worksheets("HP").Range("C" & CurrentL).Value = Worksheets("Client non connectés").Range("B:B").Value Then
Worksheets("Client non connectés").Range("B" & CurrentL).Interior.Color = 65535
End If
CurrentL = CurrentL + 1
'Wend
End sub