Thanks Charles for your answear.
I think that for my project a document template is better suited then a global template: in the document template MyMainTemplate.dotm I have several macros for a lot of manipulation of the Content Controls and Building Blocks that the user will insert. On other documents, not well formed for my document template, Those macros are senseless and will obviously conduct to errors.
The Building Blocks, Style (actually style names), Content Controls, AutoText that the user can insert are languages dependent and are stored by me (but also by the user) in a service template. What I have called MyServiceXx.dotx which I said is only 73 KB. When in Document New or Open I call LoadBuildingBlocks I think that all the Building Blocks (at least those in Built-In Building Blocks.dotx and MyServiceXx.dotx, since my Building Blocks.dotx is empty) are loaded in the memory and ready for use.
If I comment LoadBuildingBlocks in Document_New of MyMainTemplate.dotm, I get:
- an error if I try to insert first one of my Building Blocks
- no error if I insert one of the "normal" BB, for instance, from Insert|Text|Quick Parts|Document Properties|Author and the one of mine BB.
From your post I gather that I can "economize" time in the loading process only if I use global templates (each session, instead of every documents).
What about loading only my few ones, instead of the others that are managed by word itself?
What do you think of putting before every BB insertion a Resume Next instruction to check if they where already loaded otherwise load them?
Thank again, Lauro