AddCustom 方法AddCustom method

返回一个**VBComponent** 对象, 或创建一个新的自定义组件并将其添加到项目中。Returns a VBComponent object, or creates a new custom component and adds it to the project.


对象AddCustom(ByValprogid作为 String类型)为 VBComponentobject.AddCustom (ByValprogidAs String) As VBComponent

AddCustom 方法语法包含以下部分:The AddCustom method syntax has these parts:

PartPart 说明Description
objectobject 一个计算结果为 "适用范围" 列表中的对象的对象表达式An object expression that evaluates to an object in the Applies To list.
progidprogid 必需。Required. 要创建的自定义组件的 ProgID。The ProgID of the custom component to be created.

另请参阅See also

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.