Replies: 1 comment 1 reply
-
Hello, There is no trick. It's just that this is written in VB6, which does allow Public UDTs in classes. I have no experience with VBA or any compatibility issues. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been working with Microsoft in validating their open documentation of the VBA language (MS-VBAL).
According to their documents (and support) Public UDT are not valid within class modules. However, I see you have a public type called Int64 within the Int64Static class. I wanted to double check if that construct in fact works. I’ve tried to create a class module within the VBA IDE with a public UDT, and the moment I attempt to use the object, I receive an error:
“Compile Error: Cannot define a Public user-defined type within an object module”
Is there a special trick to getting this to run without error?
Beta Was this translation helpful? Give feedback.
All reactions