I created a .dot template in Word 2003 that is giving me some problems. In the footer of the template, I have a field that shows the name of the document. Immediately at the end of that I have a bookmark that is filled in with AutoNew VBA code for the ClearCase version of the file.
As long as people allow macros to run, the footer fills out correctly with document name and version. The only problem I have is if they create a new document on a different drive letter than everyone else uses. If they use different mappings to drives and that particular drive letter does not exist on my computer, the code does not run, and the version number is erroneous.
For example, suppose a user double clicks on the .dot file on his X drive and creates a document. He can open it later and the footer is correct. I have that drive mapped as the Y drive. I open it and the code does not run. The footer is wrong. Opening up the document, the code is not even there. But of course, he will be able to see it with ALT-F11.
When I check Tools > Templates and Addins, I see that the name of the template is stored there, and that it is on the X drive. That helps explain why it does not work on the Y drive: it is looking for the template on a locally non-existent drive.
My question ( at last ) is : why does the template name need to be stored and what can I do to keep this from happening? I can always open up a .doc document with the proper format and bookmark and then paste the AutoNew code in, but who wants to have to do that every time?
Thanks