In module I defined public type
Then in class module I use that type as argument of function
An at last when I try to call that function from form module passing variable of defined type.

When I try to run that program I get this compiler error:
"Only public user defined types defined in public object can be used as parameters or return types for public procedures of class modules or as fields of public defined types"

Where is problem?
Thanx in advance for any help.