User-defined type without members not allowed

This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.

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).