Why doesn't Visual Basic let me add a user defined type structure variable to a collection?
Whenever i try to do that it gives me this compile error message:
"Only user-defined types defined in public object modules can be coerced to or from a variant or pressed to late-bound functions."
Please note that I defined my type strcture in public module. This error happens on this statement
Notes.Add Item:=newnote, Key:=Str(CurNote)
'newnote' is the variable that is declared as type structure. And 'Notes' is my collection.