I am using Officed 97.
I have created an autotext entry from a document by highlighting and adding
an autotext entry in a template, the formatting of the document is fine when
it is put into the autotext.
If I call the autotext in the normal manner it returns in the correct
format, but when I call this autotext from the following code, it loses a lot
of its formatting. Is there a way with code to prevent this please?
ActiveDocument.AttachedTemplate.AutoTextEntries("192general").Insert
Where:=Selection.Range
If so, would someone be kind enough to supply me with the code.
Try setting the RichText argument to True when inserting:
ActiveDocument.AttachedTemplate.AutoTextEntries("test") _
.Insert Where:=Selection.Range, RichText:=True

Signature
Stefan Blom
Microsoft Word MVP
> I am using Officed 97.
>
[quoted text clipped - 5 lines]
> format, but when I call this autotext from the following code, it loses a lot
> of its formatting. Is there a way with code to prevent this please?
ActiveDocument.AttachedTemplate.AutoTextEntries("192general").Insert
> Where:=Selection.Range
>
> If so, would someone be kind enough to supply me with the code.