DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub ComboBox1_Change()
Dim k As Range, adrs As String, j As Byte, a As Long, myarr()
ReDim myarr(1 To 7, 1 To 1)
With Worksheets("Personel")
Me.ListBox1.RowSource = vbNullString
If .FilterMode Then .ShowAllData
Set k = .Range("B2:B65536").Find(ComboBox1.Text & "*", , xlValues, xlWhole)
If Not k Is Nothing Then
adrs = k.Address
Do
a = a + 1
ReDim Preserve myarr(1 To 7, 1 To a)
For j = 1 To 7
myarr(j, a) = .Cells(k.Row, j).Value
Next j
Set k = .Range("B2:B65536").FindNext(k)
Loop While Not k Is Nothing And k.Address <> adrs
ListBox1.Column = myarr
End If
End With
End Sub
Private Sub UserForm_Initialize()
ComboBox1.List = Sheets("Personel").Range("B3:B10").Value
ListBox1.List = Sheets("Personel").Range("A3:A10").Value
Dim i As Long
ComboBox1.Clear
For i = 3 To Range("B65536").End(xlUp).Row
If WorksheetFunction.CountIf(Range("B3:B" & i), Range("B" & i).Value) = 1 Then
ComboBox1.AddItem Cells(i, "B").Value
End If
Next i
End Sub
Private Sub UserForm_Initialize()
ComboBox1.List = Sheets("Personel").Range("B3:B10").Value
ListBox1.List = Sheets("Personel").Range("A3:A10").Value
Dim i As Long
ComboBox1.Clear
For i = 3 To Range("B65536").End(xlUp).Row
If WorksheetFunction.CountIf(Range("B3:B" & i), Range("B" & i).Value) = 1 Then
ComboBox1.AddItem Cells(i, "B").Value
End If
Next i
End Sub