Hi Team,
Thanks for the information, I tried from my end, but not successful in comparing the array
and putting the matched result. I reached till adding values in array
Below are my code, Plz assist me in looping, Thanks again for your precious time!
Option Explicit
Sub Testing()
Dim myarray1() As Variant, myarray2() As Variant
Dim Lr1 As Long
Dim Lr2 As Long
Dim index1 As Integer, index2 As Integer
Dim row1 As Integer, row2 As Integer, i As Integer, j As Integer,
row1 = 1
row2 = 1
'First Array to store data in column 1..................
Lr1 = Range("a100").End(xlUp).Row - 1
ReDim myarray1(Lr1)
For index1 = LBound(myarray1) To UBound(myarray1)
myarray1(index1) = Cells(row1, 1).Value
row1 = row1 + 1
Next
'SECOND ARRAY to store data in colulmn 4.........................
Lr2 = Range("D100").End(xlUp).Row - 1
ReDim myarray2(Lr2)
For index2 = LBound(myarray2) To UBound(myarray2)
myarray2(index2) = Cells(row2, 4).Value
row2 = row2 + 1
Next
'Comparision of array
Dim index3 As Long, constantindex As Long
constantindex = 0
For i = 1 To UBound(myarray1)
If myarray1(constantindex) = myarray2(index3) Then
For j = LBound(myarray2) To UBound(myarray2)
'Plz assist here....
Next j
Next i
End Sub