I always had a question regarding setting Collections datatype in VBA
Usual way for Variables, example,
Dim userType1 as String
But for Collections, we need to declare it as such:
Dim userCollection As Collection
Set userCollection = New Collection
Why can't you just:
Dim userCollection As Collection
Why does Collections work differently in VBA?
Never understood this. Need some explanations on this.
Edit:
What is the difference between these?
userCollection = New Collection
Set userCollection = New Collection