Sub CopierCode()
Dim fichier$, t
fichier = ThisWorkbook.Path & "\Code.txt" 'à adapter
Application.ScreenUpdating = False
With Workbooks.Open(fichier).Sheets(1)
t = Application.Transpose(.UsedRange) 'maximum 65536 lignes
If IsArray(t) Then t = Join(t, vbLf)
.Parent.Close
End With
With ActiveWorkbook.VBProject.VBComponents("Feuil1").CodeModule
.DeleteLines 1, .CountOfLines
.InsertLines 1, t
End With
End Sub