Hi,
I have simple loop:
I`m checking if value BM is on list F. If "yes" then I copy value B to column BP.
On the list values B can exist few times. How to copy only one time value B? (I dont want to have duplicates)
I have simple loop:
Code:
For i = 1 To x_country
For j = 1 To x_rows_data
If wsS.Range("BM" & i).Value = wsSD.Range("F" & j).Value Then
'check if is on list
k = k + 1
wsS.Range("BP" & k).Value = wsSD.Range("B" & j).Value
End If
Next j
Next i
I`m checking if value BM is on list F. If "yes" then I copy value B to column BP.
On the list values B can exist few times. How to copy only one time value B? (I dont want to have duplicates)