Search notes:

VB Editor Object Model: VBComponents.Add

vbComponents.add(component) adds a «component» to the VB project:
The value of component is a member of the vbext_ComponentType enum (but vbext_ct_ActiveXDesigner does not seem possible?):
vbext_ct_ClassModule 2 A class module.
vbext_ct_MSForm 3 A form
vbext_ct_StdModule 1 A standard (procedural) module.
vbext_pt_StandAlone 100 A standalone project.

See also

vbComponents

Index