HSV
Inventaris
- Lid geworden
- 18 jul 2008
- Berichten
- 20.981
- Office versie
- Bèta Insider Office 365
Zoiets.
Code:
Sub Artikelnummers()
Dim sv, ws As Worksheet, dict As Object, i As Long
Set dict = CreateObject("Scripting.Dictionary")
For Each ws In Sheets
If Left(ws.Name, 4) <> "Week"[COLOR=#0000ff] And ws.Name <> "26-11" And ws.Name <> "28-11"[/COLOR] Then
sv = ws.Cells(1).CurrentRegion.Resize(, 10)
For i = 2 To UBound(sv)
dict(sv(i, 2)) = Application.Index(sv, i, Array(1, 2, 3, 6, 7, 8, 9, 10))
Next i
End If
Next ws
Worksheets("Week 48").Range("A2").Resize(dict.Count, 8) = Application.Index(dict.items, 0, 0)
End Sub