السلام عليكم
وهذا كود آخر:
Private Sub UserForm_Activate()
Dim LastRow As Integer, MyCel As Range
With ورقة1
LastRow = .Cells(.Rows.Count, "B").End(xlUp).Row
For Each MyCel In .Range("B4:B" & LastRow)
If Application.WorksheetFunction.CountIf(.Range("B4:B" & MyCel.Row), MyCel.Value) = 1 Then
ComboBox1.AddItem MyCel.Value
End If
Next
End With
End Sub
بقائمة بدون تكرار_2.rar