AutoText Formatting Question

J

jbc

I'm inserting an AutoText into my document that loses it's paragraph
formatting when I put it in with code. The formatting holds when I insert it
manually.

ActiveDocument.AttachedTemplate.AutoTextEntries("Signature").Insert
Where:=Selection.Range

Is there a way to modify the code?

Thanks.

jbc
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?amJj?=,
I'm inserting an AutoText into my document that loses it's paragraph
formatting when I put it in with code. The formatting holds when I insert it
manually.

ActiveDocument.AttachedTemplate.AutoTextEntries("Signature").Insert
Where:=Selection.Range

Is there a way to modify the code?
You need to include the parameter RichText:=True

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
G

Graham Mayor

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

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
S

Sophie

Thank you so much.
Graham Mayor said:
ActiveDocument.AttachedTemplate.AutoTextEntries("Signature").Insert
Where:=Selection _
.Range, RichText:=True

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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