Import Method Example

The following example uses the Import method on the VBComponents collection to copy the contents of the test.bas file into a code module.

Application.VBE.ActiveVBProject.VBComponents.Import("test.bas")