The following example uses the AddFromFile method to add the contents of a file to a specified code pane.
Application.VBE.CodePanes(3).CodeModule.AddFromFile "c:\Code Files\book2.frm"