Private Enum and user-defined types cannot be used as parameters or return types for public procedures, public data members, or fields of public user-defined types

   

A Public procedure is visible to all modules in a project, while a Private Enum type is not visible outside its own module. This error has the following cause and solution:

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).