Hello and thanks for your attention,
I am dealing with a collection of templates that I want to all refer to a common template to get code. All templates are located on the network along side the common template.
I was hoping to put some simple code in an autonew module or Document.New in the individual templates that would automatically load the common template, make sure it is global and then allow further code to call subs and functions that are located in the common template code.
The problem I am having (and it seems rather obvious now that I am testing) is that until the code runs that loads the common template (with the functions and subs) Word will have trouble compiling the code in the individual template because it will determine the functions and subs are not yet defined. (Word hasn't had an opportunity to load the source of the functions and subs yet before it starts checking that all called subs and functions are valid. Get it?)
Any ideas? I understand VBA code fairly well but this is my first crack at doing anything like this in Word. I was thinking that this seems fairly straight forward and an issue probably encountered by many so there is probably a best practice I should follow.
I offer up 125 points because I believe it to be fairly straight forward but if it proves more difficult that I believe I will bump it up. (If I can. this is also my first question on this service so feel free to let me know what's goin' on or if you need more details.)