I've declared a User Defined Type as follows in Module 1:
Then inside a sub some array variables are declared as follows (in the same module):![]()
Please Login or Register to view this content.
These arrays are then populated with data. I now need to pass these arrays to another function that will combine some of the relevant data from each of the arrays and return me another array of the same UDT type e.g.:![]()
Please Login or Register to view this content.
However; There is some problem somewhere?![]()
Please Login or Register to view this content.
I get the following error message:
Compile error:
Only user-defined types defined in public modules can be coerced to or from a variant or passed to late-bound functions.
Any ideas what's wrong or how to do this?
Bookmarks