I'm trying to use a public User Defined Type from within a class module. The UDT has been declared in a public module, the instance in a class module, like this:
VB Code:
'Module:
Public Type tText
Font As String
Format As String
End Type
'Class Module
Public Text as tText
This is not allowed, apparently. The compiler gives me this error:

Originally Posted by
VB Compiler
Constants, fixed-length strings, arrays, user-defined types and Declare statements not allowed as Public members of object modules.
Why can't UDT's be used publicly?