TiemG said:
I have added an autotext, I added that one into my new template. Do I need
to
use an other statement than: NormalTemplate.AutoTextEntries()?
You need to replace that line of code with one which refers to the location
of the autotext entry. currently, the code is expecting to see the aurotext
entry in normal.dot.
If the autotext is in the same template as the code, then this line of code
should be used instead
ThisDocument.AttachedTemplate.AutoTextEntries("TEXT").Insert Where:= _
Selection.Range, RichText:=True
--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition
www.classicvb.org