font and bookmarks

D

Dragon

I am creating code that will place autotext at a bookmark on the document.
A few of the words in the autotext are bold and underlined. When I place
the autotext in the document at a place different that where the bookmark
is, everything is fine. However, when I place it at the bookmark point, it
removes the font on the few words affected. Here is the code I am using -

ActiveDocument.AttachedTemplate.AutoTextEntries("placement").Insert _
where:=activedocument.Bookmarks("AddPlacement").Range

Any thoughts?
 
S

Stefan Blom

Did you try to set the RichText argument of the Insert
method to True? This should do the trick!

Stefan
 

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