#9
by bennieo
Thanks for your help.
I've been thinking about this project and have decided to go another route. Instead of running my update module when ICAD starts, I'm going to have it run from a form.
The reason for doing this is that my program contains file paths that are specific to each user. If the import process was automatic the user would have to change these paths every time they start ICAD. By running from a form, I can let everyone know when updates are available and they can run the update module.
This creates a new problem for me. After the components are imported I need to be able to replace the default paths with the user's path. For example:
myPath = "C:\My Documents\MYdwgs\"
needs to be replaced with
myPath = "C:\My Documents\USERdwgs\"
This change needs to be permanent (untill the user updates again).
I found this in the help file, but again I don't understand how it controls which module the code will go in and where it will be located.
For I = 1 to 26
Application.VBE.CodePanes(1).CodeModule.InsertLines I, Mid$("abcdefghijklmnopqrstuvwxyz", 1, I)
Next I
For I = 1 to 13
Application.VBE.CodePanes(1).CodeModule.ReplaceLine 2*I, Mid$("abcdefghijklmnopqrstuvwxyz", 1, I)
Next I