AddCustom method
Returns a VBComponent object, or creates a new custom component and adds it to the project.
Syntax
object.AddCustom (ByValprogidAs String) As VBComponent
The AddCustom method syntax has these parts:
Part | Description |
---|---|
object | An object expression that evaluates to an object in the Applies To list. |
progid | Required. The ProgID of the custom component to be created. |
See also
- Collections (Visual Basic Add-In Model)
- Visual Basic Add-in Model reference
- Visual Basic language reference
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.