Constants, fixed-length strings, arrays, user-defined types, and Declare statements not allowed as Public members of an object module

   

Not all variables in an object module can be declared as Public. However, procedures are Public by default, and Property procedures can be used to simulate variables syntactically. This error has the following causes and solutions:

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