Hi,
Try changing
If Not .Rows(i).Hidden Then
ComboBox1.AddItem .Cells(i, strCol).Value
End If
to
If Not .Rows(i).Hidden Then
blnExist = False
For j = 0 To ComboBox1.ListCount - 1
If ComboBox1.List(j) = .Cells(i, strCol).Value Then
blnExist = True
Exit For
End If
Next j
If Not blnExist Then
ComboBox1.AddItem .Cells(i, strCol).Value
End If
blnExist = False
End If
and you will have to declare the following variables at the top of the code with the rest of the declarations:
Dim j As Long
Dim blnExist As Boolean
Hope this gets it to 100%
Bookmarks