I'm trying to use a collection as part of a function, however I keep getting the error: "A module is not a valid type" on compile.
Even if the function simply defines a collection, I get the same:
Function CountUniqueTags()
Dim table As Collection
Set table = New Collection
End Function
This code is in a standard module, but the error implies I should be writing this in a class module, but Collection is a built-in class so I don't see the issue?