Search notes:

VBA: class modules

Accessibility and instancing

The attributes VB_Exposed and VB_Creatable determine a class's accessibility and instancing:
VB_Exposed VB_Creatable
false false Private (default). The class is only accessible within its project.
true false Public, not creatable. The class is accessible in its project and in referencing projects. Referencing projects may not create instances.
true true Public, creatable. Class is accessible in its project and referencing projects and can be created in both.

See also

The me keyword evaluates to the respective instance (object) in a member procedure/function.
module
VBA class

Index