PC_Meister
Board Regular
- Joined
- Aug 28, 2013
- Messages
- 72
Hello,
I am wondering if there is a more elegant/faster way to compare column A to column B and then extract and append the unique values in column B that are not present in column A, than using nested loops as shown in the following
Any ideas? Thanks in advance
I am wondering if there is a more elegant/faster way to compare column A to column B and then extract and append the unique values in column B that are not present in column A, than using nested loops as shown in the following
Code:
For i = LBound(vSource, 1) To UBound(vSource, 1)
For j = LBound(vTarget, 1) To UBound(vTarget, 1)
myBool = True
If vSource(i, 1) = vTarget(j, 1) Then
myBool = False
End If
If myBool Then ...
Any ideas? Thanks in advance