E
Ed Kopta
I'm trying to write a function with one required parameter and one optional
one, the latter being an array. I've declared the optional parameter as a
Variant, since compile errors compel me to.
The routines that call this function do so with a User-defined Type for the
Variant. But I'm having trouble compiling. When the Type is declared in a
standard module, error messages tell me that only types declared in a
"Public Object Module" can be forced into a variant. When I move the Type
declaration to a Form or Class module, error messages tell me that public
types cannot be declared in an object module. So I guess I'm asking you all
where I can put it!
Thanks for the help.
one, the latter being an array. I've declared the optional parameter as a
Variant, since compile errors compel me to.
The routines that call this function do so with a User-defined Type for the
Variant. But I'm having trouble compiling. When the Type is declared in a
standard module, error messages tell me that only types declared in a
"Public Object Module" can be forced into a variant. When I move the Type
declaration to a Form or Class module, error messages tell me that public
types cannot be declared in an object module. So I guess I'm asking you all
where I can put it!
Thanks for the help.