Hello,
thanks for your code. I think i could not clear you completely. Actually i want to change this block,
For i = 1 To UBound(a)
s = Trim(a(i, 3))
If Not .exists(s) Then
.Item(s) = VBA.Array(s, a(i, 11), a(i, 13), a(i, 16), a(i, 4), Empty)
Else
myArrayList.Add s, VBA.Array(s, a(i, 11), a(i, 13), a(i, 16), a(i, 4), Empty)
End If
Next
some thing like this, but this does not work
For i = 1 To UBound(a)
s = Trim(a(i, 3))
If Not .exists(s) Then
If a(i, 1) Like "Multiple - 123" Then .Item(s) = VBA.Array(s, a(i, 11), a(i, 13), a(i, 18), a(i, 4), Empty)
Elseif .Item(s) = VBA.Array(s, a(i, 11), a(i, 13), a(i, 16), a(i, 4), Empty)
Else If myArrayList.Add s, VBA.Array(s, a(i, 11), a(i, 13), a(i, 16), a(i, 4), Empty)
End If
Next