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.
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
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?