HSV
Inventaris
- Lid geworden
- 18 jul 2008
- Berichten
- 21.140
- Office versie
- Bèta Insider Office 365
Code:
Private Sub CommandButton2_Click()
TxtIdentificatie.Enabled = False
s = LCase(TxtIdentificatie)
With Sheets("Bron")
.Cells(1).CurrentRegion.Sort .[A1], , .[B1], , , .[C1], , True
ar = .Cells(1).CurrentRegion
For j = 2 To UBound(ar)
If InStr(1, LCase(ar(j, 1)), s) Then
If InStr(1, c00, Join(Application.Index(ar, j, Array(2, 3)), ", ")) = 0 Then
c00 = c00 & "|" & Join(Application.Index(ar, j, Array(2, 3)), ", ")
End If
End If
Next j
End With
If Len(c00) > 0 Then ComboBox2.List = Split(Mid(c00, 2), "|") Else MsgBox "niets gevonden"
End Sub