Option Explicit
Private Sub Command1_Click()
Dim A As Variant
Dim i, j As Long
A = Array(10, 20, 30, 35, 40, 45, 50, 55, 60, 65, 70, 11, 20, 25, 30, 35, 40, 45, 50, 55, 60, 70, 77, 12, 35, 40, 45, 50, 75)
Dim B As Variant
Dim C() As Boolean
ReDim C(UBound(A)) As Boolean
B = A
For i = 0 To UBound(B) - 1
For j = i + 1 To UBound(B)
If B(i) = B(j) And B(i) <> "" Then
C(i) = True
B(j) = ""
' Stop
End If
Next
Next
For i = 0 To UBound(C)
If C(i) Then
MsgBox A(i)
End If
Next
End Sub