mtroche:
When adding items to your combo box, set up a loop to go through your array. Before adding the next variable to your combo box, you will want to check if it is already there... if it is, don't add it. I started with 20 numbers in cells A1 to A20 then added all the numbers (excluding the duplicates) to ComboBox1 on a UserForm. See my code below:
Private Sub UserForm_Initialize()
Dim Variable As String, i As Integer, cboItem As _
Integer, counter As Integer
For i = 1 To 20
Variable = Cells(i, 1)
counter = 0
If ComboBox1.ListCount = 0 Then
ComboBox1.AddItem (Variable)
Else
ComboBox1.ListIndex = -1
For cboItem = 0 To ComboBox1.ListCount
Select Case cboItem
Case Is <> ComboBox1.ListCount
If ComboBox1.Value = Variable Then
counter = 1
End If
ComboBox1.ListIndex = ComboBox1.ListIndex + 1
Case Is = ComboBox1.ListCount
If counter <> 1 Then
ComboBox1.AddItem (Variable)
End If
End Select
Next cboItem
End If
Next i
ComboBox1.ListIndex = 0
End Sub
Hope this Helps!
Jproj