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.)
If you work with Word a lot, you probably use styles. If you use styles a lot, you've probably balled your fist more often than not when working with the ribbon.
In Word 2007/2010, one of the things that I find missing when using styles is a quic…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
How can you see what you are working on when you want to see it while you to save a copy?
Add a "Save As" icon to the Quick Access Toolbar, or QAT.
That way, when you save a copy of a query, form, report, or other object you are modifying, you…