ThisDocument is the document which holds your code, probably a template.
Unless it is the same template that holds your AutoText your code isn't
likely to work. The attached template for a template is the template itself
as far as I have been able to tell.
When you say it has stopped working, what has stopped? Does it go to the end
of your document? Does it give you an error message?
If the name of the AutoTextEntry is MG12 I would include it in quotation
marks.

Signature
Charles Kenyon
Word New User FAQ & Web Directory: http://addbalance.com/word
Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide
See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
>I have autotext stored in aglobal template which I callupon from code
>stored
[quoted text clipped - 7 lines]
> with
> a solution, please?
Mark - 16 Mar 2006 23:57 GMT
Hi Charles,
The autotext is held in this template.
The MG12 is a defined string with loads of variations so the code in the
document that calls the code in the template with the autotext sets the
string first.
The error code I am now getting is: Run time error 32809 Application-defined
or object defined error.
Mark
> ThisDocument is the document which holds your code, probably a template.
> Unless it is the same template that holds your AutoText your code isn't
[quoted text clipped - 17 lines]
> > with
> > a solution, please?