My current code simply adds a 1 to the module's names, just wondering if there's a replace command I could use or some other method, Thanks
Code:
Sub Import_basFiles()
Dim StrFile As String
StrFile = Dir("C:\users\steve\desktop\basfiles\")
Do While Len(StrFile) > 0
Application.VBE.ActiveVBProject.VBComponents.Import ("C:\users\steve\desktop\basfiles\" & StrFile)
StrFile = Dir
Loop
End Sub
Last edited: