how can I do the same functionality as below only when I open a db different from the one I have
open with opendatabase, I want dump to forms, macros, everything
Code:
For i = 0 To (Application.CurrentProject.AllModules.Count) - 1 modName = Application.CurrentProject.AllModules(i).Name
DoCmd.OpenModule modName
Set moduleObj = Modules(modName)
If moduleObj.CountOfLines > 0 Then
f.WriteLine (" ")
f.WriteLine ("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++")
f.WriteLine ("Start of Module " & modName)
f.Write moduleObj.Lines(1, moduleObj.CountOfLines) & " "
End If
DoCmd.Close acModule, modName
Set moduleObj = Nothing
Next