This code is in a class module:
This will result in this error:VB Code:
Private Type hej x As Long y As Long End Type Public Sub showHej(hej2 As hej) msgbox hej2.x & ":" & hej2.y End Sub
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???




Reply With Quote