Macro that inserts Autotext loses styles of Autotext entry 
Author Message
 Macro that inserts Autotext loses styles of Autotext entry

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



Fri, 30 Dec 2005 23:05:37 GMT  
 Macro that inserts Autotext loses styles of Autotext entry
You need the RichText:=True argument, as below:

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

Larry



Fri, 30 Dec 2005 23:49:51 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Inserting Autotext using VBA - loses formatting and styles

2. Change style of autotext entries

3. Insert Autotext Entries in a Document

4. Insert autotext entry in formfield

5. Help Inserting AutoText Entries

6. Insert AutoText in Footer via Macro

7. Problem with format on insert autotext, and in inserting elements with form fields

8. Help with code for checkboxes and autotext entries.

9. Autotext entries

10. Userform and Legal Autotext Entries

11. Delete ALL autotext entries?

12. Autotext entry exist

 

 
Powered by phpBB® Forum Software