Incorrect code
Sub DoSomething()
Dim foo As Collection
With foo
.Add "ABC"
.Add "XYZ"
End With
End Sub
Why doesn't this work?
Object variables hold a reference, and references need to be set using the Set keyword. This error occurs whenever ...