HSV
Inventaris
- Lid geworden
- 18 jul 2008
- Berichten
- 20.984
- Office versie
- Bèta Insider Office 365
Zo?
Code:
Sub hsv()
Dim sv, hs, sq, i As Long, datum As Date, c00
sv = Sheets("data").Cells(4, 1).CurrentRegion
hs = Application.Transpose(Sheets("personeel").Range("a5:a13"))
sq = Sheets("personeel").Range("a5:b13")
c00 = [transpose(row(1:9))]
datum = Sheets("info").Cells(1, 3)
For i = 2 To UBound(sv)
If sv(i, 1) = datum Then c00 = Filter(c00, Application.Match(sv(i, 2), hs, 0), 0)
Next i
Sheets("info").Cells(48, 5).Resize(UBound(Split(Join(c00))) + 1) = Application.Transpose(Application.Index(sq, c00, 2))
End Sub
Laatst bewerkt: