Importing

To import a file into a project highlight the project in the Project Explorer window and select (File > Import File).
Alternatively you can use the shortcut key (Ctrl + M).
You can only import a file that has been exported with the (File > Export) command.
You can then import these ".bas" files into other projects.


Userforms

Public Function ImportFiles( _ 
         ByRef objComponents As VBIDE.VBComponents, _
         ByVal sImportPath As String, _
         ByVal bDeleteCodeFiles As Boolean)

Dim lCount As Long
Dim sFullName As String
Dim sComponentName As String

   For lCount = all the items

       sComponentName =
       sFullName = sImportPath & sComponentName

       objComponents.Import sFullName
   Next
End Function

© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrevNext