I'm trying to convert a haphazard module to a class to improve reusability. However, I get the following error when I try to compile:
Compile Error: Only public user defined types defined in public object modules can be used as parameters or return types for public procedures of class modules or as fields of public user defined types
Can anyone help me to understand the meaning of this?
The first instance of code causing the error is:
Where CDVendorInfo is a type I've defined in a module within the same project.
Thanks.
Compile Error: Only public user defined types defined in public object modules can be used as parameters or return types for public procedures of class modules or as fields of public user defined types
Can anyone help me to understand the meaning of this?
The first instance of code causing the error is:
Code:
Public Function CDDriveVendorInfo(CDid As Long) As CDVendorInfo
Where CDVendorInfo is a type I've defined in a module within the same project.
Thanks.