Microsoft Office 2000/Visual Basic Programmer's Guide   

The Instancing Property

You may notice that a class module has an additional property in the Properties window, the Instancing property. This property specifies whether the class module should be visible from another project when you've set a reference to the project that contains the class module. The property has two settings, Private, which is the default setting, and PublicNonCreatable. If you set the Instancing property to Private, a project that sets a reference to your project will not be able to view that class module in the Object Browser, nor will it be able to work with an instance of the class. If you set it to PublicNonCreatable, a project that sets a reference to your project can see the class module in the Object Browser. The referencing project can work with an instance of the class, but only if the referenced project has first created that instance. The referencing project can't actually create the instance itself.

For more information about the Instancing property, search the Visual Basic Reference Help index for "Instancing property."