Results 1 to 2 of 2
2005-09-26, 13:55 #1
- Join Date
- Mar 2005
- Kent, England
- Thanked 0 Times in 0 Posts
Referencing an Autotext File (Office 2003)
Can anyone help?
I have a template which uses Control Buttons - front end (so therefore have saved as a doc file). As there are a number of buttons within the document and it takes some time to load, I saved sections of the template to an Autotext file (dot file) and referenced the dot file to the doc file, which works well. The problem I have is that if newly created doc file is forwarded to another user who does not have the Autotext file installed the reference is dropped which is causing an error.
Any suggestions on how to drop the reference after the document is created. (Hope I'm making sense !!)
2005-09-26, 14:55 #2
- Join Date
- Mar 2002
- Thanked 29 Times in 29 Posts
Re: Referencing an Autotext File (Office 2003)
You can set the attached template to Normal.dot:
ActiveDocument.AttachedTemplate = NormalTemplate
This will break the link to the original template. Note: if you run the above code from the template, code execution will end immediately after that line, so you probably would want to run it from a global template.