This code is in a class module:

VB Code:
  1. Private Type hej
  2.     x As Long
  3.     y As Long
  4. End Type
  5.  
  6. Public Sub showHej(hej2 As hej)
  7. msgbox hej2.x & ":" & hej2.y
  8.  
  9. End Sub
This will result in this error:

Compile error:
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.

How to make it work???