related to that article AB33 I was wandering whether you might answer a question I have on an example in it....
In example #4 in the article- the last bit of the code to write the dictionary items to the worksheet is:
Keys = dic.Keys
.Range("g1:h1").Value = Array("Dictionary" & Chr(10) & "Employee", "Date")
.Range("g2").Resize(dic.Count, 1).Value = Application.Transpose(Keys)
For r = 0 To UBound(Keys)
.Cells(r + 2, "h") = dic.Item(Keys(r))
Next
I understand the first bit and how that deals with the keys. I am not 100% sure on how the bit dealing with the dic.Items works...specifically why it is
and how the following line works:
.Cells(r + 2, "h") = dic.Item(Keys(r))
(I seem to remember you helped me with one of these codes before - but I may be wrong)
Bookmarks