I have tried passing a udt between classes with no luck. Defining a public type in a standard module seemed logical, but trying to pass this creates a compile error. Defining it in as public in a class module also results in a compile error.
Here's how to reproduce the error: Start a new standard exe project, add a standard module and a class module. Add the following to the standard module:
Public Type struct
x As Integer
y As String
End Type
In the class module, add:
Public Sub TryIt(s As struct)
MsgBox "Success"
End Sub
Try to run it. If you know (or come up with) a workaround, please let me know. Thanks!
Here's how to reproduce the error: Start a new standard exe project, add a standard module and a class module. Add the following to the standard module:
Public Type struct
x As Integer
y As String
End Type
In the class module, add:
Public Sub TryIt(s As struct)
MsgBox "Success"
End Sub
Try to run it. If you know (or come up with) a workaround, please let me know. Thanks!