User-defined type without members not allowed

User-defined types must have at least one element. This error has the following cause and solution:

  • You specified an empty user-defined type in a Type...End Type definition. Check the Type statement for unintended comment delimiters.

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.