Macro that inserts Autotext loses styles of Autotext entry

A

Aaron

I've been attempting to have
an ActiveX command button to
insert an AutoText entry. When
the AutoText entry is inserted,
all the styles and formatting
from the entry are stripped.

Am I missing "preserve formatting"
flag or something?

Take courage,
Aaron
 
L

Larry

You need the RichText:=True argument, as below:

NormalTemplate.AutoTextEntries("dfre").Insert Where:=Selection.Range,
RichText:=True

Larry
 

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