Hi all!
I have two ranges. Range 1 and Range 2.
Range 2 is within Range 1.
I want to iterate through the ranges to
check for duplicates. For example:
Range 1 equals
1, 2, 3, 2, 5
Range 2 (within Range 1) equals
2, 3, 2, 5
I'm using a nested For Each Loop to
check the ranges -->
For each x in Range 1
For each y in Range 2
If x.Text = y.Text Then
do something
Else
do something else
End if
Next y
Next x
I want to compare each element (x) in Range
1 to each element in range 2 but I want
to make count downwards.
For example, on the first loop x = 1 and y = 2.
On the second loop x = 1, but I want y to start
at 3 this time. On the third loop x still equals
1, but I want y to start at 2 this time etc.
How can I do this? Thanks in advance. Peace!
I have two ranges. Range 1 and Range 2.
Range 2 is within Range 1.
I want to iterate through the ranges to
check for duplicates. For example:
Range 1 equals
1, 2, 3, 2, 5
Range 2 (within Range 1) equals
2, 3, 2, 5
I'm using a nested For Each Loop to
check the ranges -->
For each x in Range 1
For each y in Range 2
If x.Text = y.Text Then
do something
Else
do something else
End if
Next y
Next x
I want to compare each element (x) in Range
1 to each element in range 2 but I want
to make count downwards.
For example, on the first loop x = 1 and y = 2.
On the second loop x = 1, but I want y to start
at 3 this time. On the third loop x still equals
1, but I want y to start at 2 this time etc.
How can I do this? Thanks in advance. Peace!