The following example uses the Add method to add one standard module to the VBComponents collection.
Application.VBE.VBProjects(1).VBComponents.Add(vbext_ct_StdModule)