Private Sub Command3_Click()
Dim i, j
Dim equal As Boolean
equal = True
For i = Text1.LBound To Text1.UBound - 1
For j = i To Text1.UBound
If Text1(i) <> Text1(j) Then
equal = False
End If
Next j
Next i
If equal Then
MsgBox "OK"
Else
MsgBox "False"
End If
End Sub