- Katılım
- 2 Haziran 2011
- Mesajlar
- 6
- Excel Vers. ve Dili
- 2007 türkçe
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Merhaba dosyanız ekte.
Private Sub TextBox1_Change()
Dim k As Range, adrs As String, j As Byte, a As Long, myarr()
ReDim myarr(1 To 5, 1 To 1)
With Worksheets("KOD")
Me.ListBox1.RowSource = vbNullString
If .FilterMode Then .ShowAllData
Set k = .Range("b2:b65536").Find(TextBox1.Text & "*", , xlValues, xlWhole)
If Not k Is Nothing Then
adrs = k.Address
Do
a = a + 1
ReDim Preserve myarr(1 To 5, 1 To a)
For j = 1 To 5
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