Formatting Autotext

M

Mark

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.
 
S

Stefan Blom

Try setting the RichText argument to True when inserting:

ActiveDocument.AttachedTemplate.AutoTextEntries("test") _
.Insert Where:=Selection.Range, RichText:=True

--
Stefan Blom
Microsoft Word MVP


in message
news:[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top