Hi,
I'm new in here and macros. I would like to create unique comboboxes in my userform. I don't want them to be repeated in combobox.
I have 5 columns and you can see my codes below.
I appreciate for your quick response and help. Please also let me know if you need further information that I'm using.
I'm new in here and macros. I would like to create unique comboboxes in my userform. I don't want them to be repeated in combobox.
I have 5 columns and you can see my codes below.
I appreciate for your quick response and help. Please also let me know if you need further information that I'm using.
Code:
Private Sub UserForm_Initialize()
Dim T1 As Range
Dim T2 As Range
Dim T3 As Range
Dim T4 As Range
Dim ws As Worksheet
Set ws = Worksheets("LookupLists")
For Each T1 In ws.Range("ProcessList")
With Me.Turkcell1
.AddItem T1.Value
End With
Next T1
For Each T2 In ws.Range("SubProcessList")
With Me.Turkcell2
.AddItem T2.Value
End With
Next T2
For Each T3 In ws.Range("KPITypeList")
With Me.Turkcell3
.AddItem T3.Value
End With
Next T3
For Each T4 In ws.Range("KPINameList")
With Me.Turkcell4
.AddItem T4.Value
End With
Next T4
Me.Turkcell4.SetFocus
End Sub