|
|
От: |
Elena_
|
|
| Дата: | 08.09.05 20:15 | ||
| Оценка: | 4 (1) | ||
The Instancing Property
You might 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 have 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 cannot actually create the instance itself.Excel XP
Category Optional Variant. An integer that specifies the macro function category (Financial, Date & Time, or User Defined, for example).
Category Optional Variant. An integer that specifies an existing macro function category (Financial, Date & Time, or User Defined, for example). See the remarks section to determine the integers that are mapped to the built-in categories. You can also specify a string for a custom category. If you provide a string it will be treated as the category name that is displayed in the Insert Function dialog box. If the category name has never been used, a new category is defined with that name. If you use a category name that is that same a built-in name, Excel will map the user defined function to that built-in category.