I want a set of not the same numbers to be added to a listbox, if there are any numbers that are the same, then they won't be added.
I tried:
If (Number1 = Number2) Or (Number1 = Number3) Or (Number1 = Number4) Or (Number1 = Number5) = False Then
ListBox1.Items.Add(Number1 & " " & Number2 & " " & Number3 & " " & Number4 & " " & Number5)
End If
However I still got
10 10 50 29 36 13
the first two numbers are of the same value, and yet they somehow managed to get added to the listbox.
How can I fix this?