Hi all,
I have some code that makes a scripting dictionary but I'm having a bit of a problem with trying to get it to do what I want.
Here's my code that's throwing up an error:
It's this bit that is giving me the trouble " If .exists.Item(cl.Value)(0)) Then"
Any help much appreciated,
Thanks
Tom
I have some code that makes a scripting dictionary but I'm having a bit of a problem with trying to get it to do what I want.
Here's my code that's throwing up an error:
VBA Code:
With CreateObject("scripting.dictionary")
Set ws2 = Sheets("UPDATE TOOL3")
For Each cl In ws2.Range("A2", ws2.Range("A" & Rows.Count).End(xlUp))
If Not .exists(cl.Value) Then
.Add cl.Value, Array(cl.Offset(, 1).Value, cl.Offset(, 2).Value, cl.Offset(, 3).Value)
End If
Next cl
Set ws1 = Sheets("MAINT")
For Each cl2 In ws1.Range("A10", ws1.Range("A" & Rows.Count).End(xlUp))
If .exists.Item(cl.Value)(0)) Then
etc...........
It's this bit that is giving me the trouble " If .exists.Item(cl.Value)(0)) Then"
Any help much appreciated,
Thanks
Tom