PDA

View Full Version : Solved: AutoText Formatting



markh1182
08-20-2007, 03:10 AM
Hi, If in Word I create an autotext entry that has formatting it seems to save fine and if I then select that it inserts correctly with the right formatting.

However, if I insert the autotext through code using:
ActiveDocument.AttachedTemplate.AutoTextEntries("_CVEntry").Insert Where:= _
Selection.Range

It inserts, but does not include the formatting.

Does anyone know how I can get around this?

geekgirlau
08-20-2007, 08:59 PM
ActiveDocument.AttachedTemplate.AutoTextEntries("_CVEntry").Insert Where:= _
Selection.Range, RichText:=True

markh1182
08-21-2007, 01:22 AM
thanks geekgirl, worked perfectly.

So easy when you know how :)