I thought I'd got this one sussed but it's not working.
I'm trying to find if any 2 arrays are of the same value. I have this....
while x < UBound(PcArray)
While y < UBound(PcArray)
If PcArray(x) = PcArray
AND (x <> y) Then
msgbox PcArray(x) & " has been enterred twice!"
Exit Function
End If
y = y + 1
Wend
x = x + 1
Wend
I'm trying to find if any 2 arrays are of the same value. I have this....
while x < UBound(PcArray)
While y < UBound(PcArray)
If PcArray(x) = PcArray

msgbox PcArray(x) & " has been enterred twice!"
Exit Function
End If
y = y + 1
Wend
x = x + 1
Wend