VBComponents Collection
Description
Represents the components contained in a project.
Remarks
Use the VBComponents collection to access, add, or remove components in a project. A component can be a form, module, or class. The VBComponents collection is a standard collection that can be used in a For Each block.
You can use the Parent property to return the project the VBComponents collection is in.
In Visual Basic for Applications, you can use Import method to add a component to a project from a file.
Properties
Count property, Parent property, VBE property.
Methods
Add method, Import method, Item method, Remove method.
Events
ItemAdded event, ItemRemoved event.
See Also
CodeModule object, VBComponent object, VBProject object.